You already have a resource with a field for the number of guests.
For example, a twenty-four-hour lease with a price of $100 per hour.
Create a pricing component for the extra charge for each guest over eight.
1. Enter a name for the component.
2. Enter the name of the formula parameter for the number of guests.
For example, GUESTS.
3. Enter the formula.
$100 multiplied by the number of guests over eight.
And all this multiplied by [INTERVALS] - the number of reserved hours.
100 * ([GUESTS] -8) * [INTERVALS]
4. Click the Constraints tab.
The formula will be negative if the number of guests is less than eight.
To avoid this, set 9 to the left of the number of guests.
Now the price component will be included only if the number of guests is 9 or more.
This configuration turned out:
We choose 2 hours and 11 guests.
Formula: 100 * (11-8)*2 = $600.
Look at the example in action.