Limiting the total hours a teacher spends at school per day
Last updated: May 18, 2026
Maximum hours at school per day
This constraint limits how many hours a teacher can spend at school in a single day — counted from the start of their first lesson to the end of their last lesson, including any breaks or free periods in between.
For example, if a teacher's first lesson starts at 08:00 and their last lesson ends at 14:00, they spend 6 hours at school that day — even if they have a free period at 11:00.
Go to Teachers, click the edit icon next to a teacher, and configure the Maximum hours worked per day (including breaks or gaps) constraint in the Constraints section.
When to use this
Use this constraint when a teacher cannot stay at school beyond a certain time — for example, a teacher who must leave by early afternoon. It works alongside unavailability periods but operates on total time span rather than individual slots.
Recommendation
This constraint is stricter than it may appear — it accounts for gaps, not just active teaching time. If combined with many unavailability periods or a high number of lessons, it can make the timetable difficult to generate. Use Avoid (Flexible) unavailability markers where possible instead.
Related articles