Let's say you already have a resource with a rule of work.
For example, a rental for $100 / hour for each item. And only 10 places are available.

To change the price of the third and subsequent hours, you can use one of three solutions.

You can add a discount for reservations that last 3 hours or more.

Create a pricing component.

Enter the name of the component.
Click on the **Insert parameter** button.
This way you can insert parameters for duration — number of hours **[STEPS]** and for shares — number of places **[P1]**.

Enter the formula.
The discount of $20 is multiplied by the number of hours over two.
And we multiply all this by the number of reserved places.

After that click on the **Add condition** button.

Set the minimum steps — 3.
In this case, when booking one or two periods, the discount will not be applied.
Save it.

Now let's check the result.
We will book two seats for 5 hours.

You can go on the opposite way.
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.

Enter the name of the component.
Insert parameters for duration — number of hours **[STEPS]** and for shares — number of places **[P1]**.

Enter the formula.
The charge of $20 is multiplied by the number of hours.
And all this is multiplied by the number of seats reserved.

After that click on the **Add condition** button.

Set the maximum steps — 2.
Then the discount will only be applied for bookings of one or two periods.
Save.

Check the results.
We'll book 3 seats for 2 hours.

If you don't want to split the cost into parts, calculate it via the single pricing component.
To do this, set the price of the price option — $0.
Create the pricing component.

Enter the name of the component.
Insert parameters for duration — number of hours **[STEPS]** and for shares — number of places **[P1]**.

Enter the formula.
The price of $100 is multiplied by the number of hours.
Subtract the discount of $20 multiplied by the number of hours over two.
And all this is multiplied by the number of reserved places.

In formula, use the function called **Max**.
It returns the biggest of two numbers.
Thus, the expression **[STEPS]-2** cannot become less than zero.
In order to add a function click on the **Insert function** button and pick **Max** from the list of functions.

Let's check the result.
We will reserve two seats for 4 hours.

See this example in action:

Didn't find the answer to your question?

Feel free to ask it at

Feel free to ask it at