time calculation

Hi Team,

I want to calculate time in hours between two date time like on 

18th 8am to 18th 10am :- 2 hours

18th 12pm to 18th 8pm :- 8 hours 

total :- 10 hours

Can anyone please help calworkhours is not working properly.

  Discussion posts and replies are publicly visible