How to calculate hours and minute in time card?