update total price calculation