update price calculation