Let's describe one of the possible solutions.
Create a rule of work for hourly rentals.
Let's say, your working hours are daily from 9:00 AM to 6:00 PM.
First, you need to create a rule for non-working time.
Choose a gray color for it.
Hide it from the colors section on the calendar.
Set up the working time — a whole day repeating every day.
You do not need to add any steps.
The created rule for non-working time will lay under the working time rule.
You will get the schedules like this:
We will calculate daily cost using a price option, and the hourly cost using a pricing component.
Set the price for the day in the non-working rule.
For example, $500 for 1 interval.
The interval in our case is night.
On the working rule, you need to set the price of the price option — 0.
We will configure hourly rental price below.
So far it looks like this:
Now add a pricing component to calculate the hourly cost.
Name the parameter for the number of reserved units. For example, BIKE.
Enter the name of the component.
Click on the Insert parameter button.
Insert parameters for the total duration in hours [STEPS] and for the price option shares [P1].
Let's say the hour's price is $100.
We will get the formula like this.
$100 multiplied by the number of hours and multiplied by the number of units.
100 * [STEPS] * [P1]
Now, set that the component should be Enabled in all rules.
Then the component will be applied if it is enabled for the entire booked time.
Turn off the pricing component on the gray rule.
Now the hourly cost will be calculated only if booked during business hours.
And the daily cost will be applied only when the gray intervals were booked.
Book 5 shares for 3 days.
It will be: 500 * 3 * 5 = $7500.
Then book the remaining 5 shares for 5 hours on the same days.
It will be: 100 * 5 * 5 = $2500.
The calendar after that will look like this:
And here is a live example of all these settings: