How to calculate price of products?