how to count no. of hours and minutes in two set of time. having a start time to end time.
ex:
1st time : 8:00 to 17:00
2nd time : 9:00 to 18:00
answer : 6hrs <- total number of time
(-) number of hours
(|) start/end
|--------| = 8hrs
|--------| = 8hrs
|------| = 6hrs <- total number of time
like this.