How can I make the calculation of the price?