update price calculation formula