Calculation of daily and weekly working hours