My objective.
$timestamp1 = rental start time, $timestamp2 rental end time, in order to calc price.
Price calc based on weekday and weekend timerange.
Example: start: Fri 1700 end: Fri 1900 = 88+118 = $206
I don't know how to calc the duration within different timerange, to use different price cost by hour.
$week_day = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri'];
$weekend_day = ['Sat', 'Sun'];
$price_weekday_hour = 88; // weekday 0200-1800
$price_weekday_peakhour = 118; // weekday 1