Rental Type: Day
Product data: Rental Rental Type: Day
Define 1 day: Day, Hotel(Night), Hour For example: If a customer rents from 10:00 Am, 20 jan 2020 to 11:00 Am, 22 jan 2020

1: Defining 1 day" is Day

Rental Time Period: 3 days ( Even if rental time period from 10:00 Am, 20 jan 2020 to 09:00 Am, 22 jan 2020 - => Rental time Period is still 3 days )
The way to calculate rental period: (Drop-off date) - (Pick-up date) + 1
Ex: 22 - 10 + 1 = 3 (days)
"Defining 1 day" is day

2: Defining 1 day" is Hotel (Night)

The way to calculate rental period: (Drop-off date) - (Pick-up date)
Ex: 22 - 10 = 2 (days)
"defining 1 day" is Hotel

3: Defining 1 day" is Hour

The way to calculate rental period: (Drop-off date) - (Pick-up date) + X
X = 1: if (Drop-off Time) - (Pick-up Time) > 0
X = 0: if (Drop-off Time) - (Pick-up Time) < 0
Ex: 22 - 10 + 1 = 3 (days) if Drop-off Time at 11:AM and Pick-up Time at 10:00 AM
22 - 10 + 0 = 2 (days) if Drop-off Time at 09:AM and Pick-up Time at 10:00 AM
"defining 1 day" is Hour
​
​
​
Last modified 11mo ago