Calculate total price