cost optimization

am doing a PCB design in KICAD and this should end in the production room. I have generated relevant production files such as the Gerber file, the bill of material, and the pick and place file. what is remaining is how to do the generation of the cost optimization for me to know how much the product will cost me. Can anyone of you advise me on how this is done?