arrow_back_iosQuestions
help

We have the price of one hour - $100 but from the third hour the price becomes $80. How to do this?

check_circle
You already have a resource with a work rule. For example, a 24-hour rental cost $100 per hour per place. Only 10 seats.
To change the price of the third and last hours, you can use one of three solutions.

Discount for long booking

You can add a discount for reservations of three hours or more. To do this, create a price component. Click on + to the right of the pricing components.
Fill in the following parameters:
1. Enter the name of the component.
2. Add the parameter name for the number of places. For example, PLACES.
3. Enter the formula. The discount is $20 multiplied by the number of hours over two. And we multiply all this by the number of occupied places.
-20 * ([INTERVALS]-2) * [PLACES]
4. Click the constraints tab.
Add a limit of the number of periods - 3. Then, when booking one or two periods, the discount will not work. Save it.
Now let's check the result. We book two seats for 5 hours.
-20 * (5-2) * 2 = $120.

Extra charge for short-term bookings

You can go on the way back. Add a surcharge of $20 per hour for bookings shorter than three hours. To do this, first set the price of the hour - $80. Then create a pricing component.
Fill in the following parameters:
1. Enter the name of the component.
2.Add a parameter name for the number of seats. For example, PLACES.
3. Enter the formula. The $20 mark-up is multiplied by the number of hours. And all this is multiplied by the number of seats occupied.
20 * [INTERVALS] * [PLACES]
4.Open the constraints tab.
Add a period limit of less than or equal to 2. Then the discount will be valid only for bookings of one or two periods. Save.
Check the results. We'll book three seats for 2 hours.
20 * 2 * 3 = $120.

The whole cost component of the price

If you do not want to break the cost, consider it a component of the price. To do this, set the price of the hour - $0. Then create the pricing component.
Fill in the following parameters:
1. Enter the name of the component.
2. Add a parameter name for the number of seats. For example, PLACES.
3. Enter the formula. The cost of $100 multiplied by the number of hours. Subtract the discount of $20 multiplied by the number of hours in excess of two. And all this is multiplied by the number of seats occupied.
(100 * [INTERVALS] - 20 * Max(0,[INTERVALS]-2)) * [PLACES]
In this formula, we used the Max function. It will return from the two numbers in parentheses. Thus, we do not give the expression [INTERVALS] -2 to become less than zero.
4. Save the component.
Let us check the result. Reserve for 4 hours two seats.
(100 * 4 - 20 * (4-2)) * 2 = $720.
Look at this example in action:
Didn't find the answer to your question?
Ask it to us on
mail_outlinesupport@bukza.com