Calculates cost of an object knowing it's makeup and the cost of the basic parts