Work timetable function