I am trying to create a program which can calculate some date & time for peak hour & off peak hour for a car parking place from the date & time it get parked & leave.
the peak hours is 08:00 - 13:59 hrs & off peak hours is 14:00 - 07:59 hrs.
Charges are applied for every 03 hrs block starting from the parked hour, for peak hours charge is 100.00 US$ per 03 hr block & off peak 50.00 US$ per 03 hr block
if a car is parked on 06/04/04 at 10:03 hrs & it leaves on 15/04/04 at 13:25 hrs what will be its total peak hours & off peak hours?
for example: on 06/04/04 from 10:03 hrs until 07/04/04 10:30 hrs, it will be a 24 round and there will be 03 peak hr bock & 05 off peak hr bock.
i hope you will understand now what i am trying to explain.
i need this program to find out the total peak hours & off peak hours during the entire period the car is parked.
Can anyone help.
chao, xtravel
My Site:
the peak hours is 08:00 - 13:59 hrs & off peak hours is 14:00 - 07:59 hrs.
Charges are applied for every 03 hrs block starting from the parked hour, for peak hours charge is 100.00 US$ per 03 hr block & off peak 50.00 US$ per 03 hr block
if a car is parked on 06/04/04 at 10:03 hrs & it leaves on 15/04/04 at 13:25 hrs what will be its total peak hours & off peak hours?
for example: on 06/04/04 from 10:03 hrs until 07/04/04 10:30 hrs, it will be a 24 round and there will be 03 peak hr bock & 05 off peak hr bock.
i hope you will understand now what i am trying to explain.
i need this program to find out the total peak hours & off peak hours during the entire period the car is parked.
Can anyone help.
chao, xtravel
My Site: