Building the total price from different pricing depending on the entered value