You're going to have to explain what you mean in a little more detail. The creators of the website that you have in your screenprint almost certainly have a database of parts and the costs associated with those parts. When the user selects the part from the combo box, the ID of the part is checked in the database and the cost of the part added to the total.