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 — daily, full day.
You do not need to set rental intervals.
The created rule for non-working time will lay under the working time rule.
We will calculate daily cost using a price option, and the hourly one using a pricing component.
Create a price option.
Set the price for the day. 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 create a pricing component to calculate the hourly cost.
Name the parameter for the number of reserved units. For example, BIKE.
Let's say the hour's price is $100.
Write the formula.
$100 multiplied by the number of hours and multiplied by the number of units.
100 * [INTERVALS] * [BIKE]
Now go to the Applicability tab and unset the Apply even if there are missing rental intervals checkbox.
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.
The result looks like this:
Book 5 bicycles for 3 days.
It will be: 500 * 3 * 5 = $7500.
Then book the remaining 5 bicycles 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: