Count the working hours