Skip to content

Working time limits (EU Working Time Directive)

The rule

Across the European Union (and in the United Kingdom, whose Working Time Regulations follow it), working time has limits an employer must watch:

  • no more than 48 hours a week on average, over a reference period of 17 weeks, rolling or fixed;
  • 11 consecutive hours’ rest in each 24 hours;
  • an uninterrupted rest of 24 hours in each 7 days, plus the 11 hours’ daily rest (35 hours), or 48 hours in each 14 days;
  • a rest break where the working day is longer than 6 hours;
  • night workers: no more than 8 hours in each 24 on average, and no more than 8 in any 24 for night work with special hazards.

These are limits to be told of, for someone to review: the hours worked are paid as they are.

Who uses it

Employers in every EU member state and the United Kingdom. Each country sets its own details (the length of a break, the reference period, who may opt out); a layer of the country’s, or of an agreement’s, changes the parameters.

How the recipe does it

Configuration only: the package (package.toml) has three layers.

[[layer]]
id = "limits"
[[layer.step]]
id = "average"
uses = "standard/average_limit"
params = { over = "48h", weeks = 17, kind = "average_over_48h" }
[[layer.step]]
id = "weekly-rest"
uses = "standard/weekly_rest"
params = { at_least = "35h" }
[[layer.step]]
id = "daily-rest"
uses = "standard/rest"
params = { at_least = "11h" }
[[layer.step]]
id = "break"
uses = "standard/break_time"
params = { tiers = [{ after = "6h", at_least = "20m" }], shortest = "20m" }
[[layer]]
id = "night"
applies_to = "attributes.night_worker = true"
[[layer.step]]
id = "night-average"
uses = "standard/average_limit"
params = { over = "48h", weeks = 17, kind = "night_average_over_8h" }
[[layer]]
id = "hazardous-night"
applies_to = "attributes.night_worker = true and attributes.hazardous = true"
[[layer.step]]
id = "night-hazard"
uses = "standard/limit"
params = { over = "8h", window = "24h", kind = "night_over_8h_in_24" }
  • average_limit averages, at the end of each workweek, the hours of the 17 workweeks ending with it (ctx:average_week), weeks with no hours passed over, and raises its kind about the week’s last work where the average is past 48. It reads the pay periods before as far back as the 17 weeks reach.
  • A fixed reference period is a limit on a repeating window of its length: 17 times 48 hours, 816, over { every = "17w", starts = ... }.
  • rest raises rest_too_short for work started less than 11 hours after the last day’s work ended.
  • weekly_rest adds up the stretches of rest in each week, inside it, and raises weekly_rest_short under 35 hours. For 48 hours in 14 days, in stretches of 24 or more: window = { every = "2w", starts = ... }, at_least = "48h", shortest = "24h".
  • break_time raises break_short for a day of more than 6 hours of work with no break of 20 minutes between its work.
  • A night worker (the employment attribute night_worker) has an average of their own: 8 hours in each 24 of six working days a week is 48 a week over 17 weeks, and no opt-out lifts it. Night work with special hazards is also held to 8 hours in any 24 (limit, window = "24h").
  • Where a worker may opt out of the 48-hour average in writing, a layer for those who did (attributes.opted_out = true) turns average off.

Parameters

StepParameterMeaning
average_limitover, weeks, kindThe average a week, over how many weeks, and what is raised.
average_limitcountsThe categories counted (default every worked one).
weekly_restat_least, shortest, kindThe rest due in the window, the shortest stretch that counts, what is raised.
restat_leastThe daily rest.
break_timetiers, shortest, kindThe breaks due past each length of day, the shortest that counts, what is raised.
limitover, window, kindThe most in any 24 hours, for hazardous night work.

What the scenarios show

  • a-rolling-average-over-48-hours-is-flagged: 17 weeks of 50 hours.
  • a-long-week-alone-is-not-a-breach: 60 hours after sixteen weeks of 45 average 45.9.
  • a-fixed-reference-period: the same weeks over a fixed 17-week window.
  • less-than-11-hours-between-days-is-flagged: 7 hours and a half between days.
  • seven-days-in-a-row-leave-no-weekly-rest and forty-eight-hours-in-fourteen-days: the weekly rest, by the week and by the fortnight.
  • a-day-over-6-hours-needs-a-20-minute-break: a 7-hour day with no break, and one with 20 minutes.
  • a-night-worker-averages-8-hours-in-24 and hazardous-night-work-over-8-hours: night workers’ limits.
  • an-individual-opt-out: the average turned off for a worker who opted out.

This is how these limits are commonly watched; check the rules where you operate. Rules change and vary by country and agreement: reference periods of up to 6 or 12 months by collective agreement, the length of a rest break, which days of leave are left out of a reference period, who counts as a night worker, and who may opt out.

Get the recipe

The recipe’s package and its scenarios are in the example packages repository: attendance/working_time_directive. Test it, or your own copy of it, with hourctl attend test, and publish it with hourctl attend pkg publish.

The policy package

The package’s layers, with the standard steps each one runs and their settings:

working_time_directive/package.toml
name = "working_time_directive"
version = "1.0.0"
description = "The EU Working Time Directive's limits, flagged for review and never paid: 48 hours a week averaged over 17 weeks, 11 hours' daily rest, a weekly rest, a break after 6 hours, and night workers' 8 hours in 24."
# Everyone: an average over a rolling 17 weeks of more than 48 hours a
# week, less than 11 hours between days of work, less than 35 hours of
# rest in a week (the weekly 24 and the daily 11 together), and a day of
# more than 6 hours with no break of 20 minutes are each flagged. Nobody's
# pay changes.
[[layer]]
id = "limits"
[[layer.step]]
id = "average"
uses = "standard/average_limit"
params = { over = "48h", weeks = 17, kind = "average_over_48h" }
[[layer.step]]
id = "weekly-rest"
uses = "standard/weekly_rest"
params = { at_least = "35h" }
[[layer.step]]
id = "daily-rest"
uses = "standard/rest"
params = { at_least = "11h" }
[[layer.step]]
id = "break"
uses = "standard/break_time"
params = { tiers = [{ after = "6h", at_least = "20m" }], shortest = "20m" }
# Night workers: their own average over 17 weeks, 8 hours in each 24 of
# six working days a week (48 hours a week), which no opt-out lifts.
[[layer]]
id = "night"
applies_to = "attributes.night_worker = true"
[[layer.step]]
id = "night-average"
uses = "standard/average_limit"
params = { over = "48h", weeks = 17, kind = "night_average_over_8h" }
# Night work with special hazards: no more than 8 hours in any 24.
[[layer]]
id = "hazardous-night"
applies_to = "attributes.night_worker = true and attributes.hazardous = true"
[[layer.step]]
id = "night-hazard"
uses = "standard/limit"
params = { over = "8h", window = "24h", kind = "night_over_8h_in_24" }

Scenarios

Each scenario gives a person’s punches and setup and the timecard they must produce, worked out with this package adopted (the format).

Seven hours on Monday with no break are flagged (break_short); on Tuesday a 20-minute break out and back in meets it
scenarios/a-day-over-6-hours-needs-a-20-minute-break.toml
description = "Seven hours on Monday with no break are flagged (break_short); on Tuesday a 20-minute break out and back in meets it"
punch = [
{ at = "2026-10-05 08:00", kind = "in" }, { at = "2026-10-05 15:00", kind = "out" },
{ at = "2026-10-06 08:00", kind = "in" }, { at = "2026-10-06 11:00", kind = "out" },
{ at = "2026-10-06 11:20", kind = "in" }, { at = "2026-10-06 15:20", kind = "out" },
]
[policy]
zone = "Europe/Brussels"
[[measure]]
id = "hours"
kind = "duration"
[expect]
week = "2026-10-05"
exceptions = [{ kind = "break_short", at = "2026-10-05 00:00" }]
Where the reference period is fixed (17 weeks from 15 June 2026), the same rule is a limit of 17 times 48 hours, 816, on that window: 850 hours in it are flagged as the 816th is passed
scenarios/a-fixed-reference-period.toml
description = "Where the reference period is fixed (17 weeks from 15 June 2026), the same rule is a limit of 17 times 48 hours, 816, on that window: 850 hours in it are flagged as the 816th is passed"
punch = [
{ at = "2026-10-05 08:00", kind = "in" }, { at = "2026-10-05 12:00", kind = "out" }, { at = "2026-10-05 12:30", kind = "in" }, { at = "2026-10-05 18:30", kind = "out" },
{ at = "2026-10-06 08:00", kind = "in" }, { at = "2026-10-06 12:00", kind = "out" }, { at = "2026-10-06 12:30", kind = "in" }, { at = "2026-10-06 18:30", kind = "out" },
{ at = "2026-10-07 08:00", kind = "in" }, { at = "2026-10-07 12:00", kind = "out" }, { at = "2026-10-07 12:30", kind = "in" }, { at = "2026-10-07 18:30", kind = "out" },
{ at = "2026-10-08 08:00", kind = "in" }, { at = "2026-10-08 12:00", kind = "out" }, { at = "2026-10-08 12:30", kind = "in" }, { at = "2026-10-08 18:30", kind = "out" },
{ at = "2026-10-09 08:00", kind = "in" }, { at = "2026-10-09 12:00", kind = "out" }, { at = "2026-10-09 12:30", kind = "in" }, { at = "2026-10-09 18:30", kind = "out" },
]
[policy]
zone = "Europe/Brussels"
[[measure]]
id = "hours"
kind = "duration"
[[labor]]
workday = "2026-09-28"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-09-28 18:00"
[[labor]]
workday = "2026-09-21"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-09-21 18:00"
[[labor]]
workday = "2026-09-14"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-09-14 18:00"
[[labor]]
workday = "2026-09-07"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-09-07 18:00"
[[labor]]
workday = "2026-08-31"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-08-31 18:00"
[[labor]]
workday = "2026-08-24"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-08-24 18:00"
[[labor]]
workday = "2026-08-17"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-08-17 18:00"
[[labor]]
workday = "2026-08-10"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-08-10 18:00"
[[labor]]
workday = "2026-08-03"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-08-03 18:00"
[[labor]]
workday = "2026-07-27"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-07-27 18:00"
[[labor]]
workday = "2026-07-20"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-07-20 18:00"
[[labor]]
workday = "2026-07-13"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-07-13 18:00"
[[labor]]
workday = "2026-07-06"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-07-06 18:00"
[[labor]]
workday = "2026-06-29"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-06-29 18:00"
[[labor]]
workday = "2026-06-22"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-06-22 18:00"
[[labor]]
workday = "2026-06-15"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-06-15 18:00"
[[layer]]
id = "fixed-reference"
[[layer.step]]
id = "average"
change = "replace"
uses = "standard/limit"
params = { over = "816h", window = { every = "17w", starts = "2026-06-15" }, kind = "average_over_48h" }
[expect]
week = "2026-10-05"
exceptions = [{ kind = "average_over_48h", at = "2026-10-09 12:30" }]
One week of five 12-hour days, 60 hours, after sixteen of 45 averages 45.9 hours a week over the 17: under 48, nothing is flagged
scenarios/a-long-week-alone-is-not-a-breach.toml
description = "One week of five 12-hour days, 60 hours, after sixteen of 45 averages 45.9 hours a week over the 17: under 48, nothing is flagged"
punch = [
{ at = "2026-10-05 08:00", kind = "in" }, { at = "2026-10-05 12:00", kind = "out" }, { at = "2026-10-05 12:30", kind = "in" }, { at = "2026-10-05 20:30", kind = "out" },
{ at = "2026-10-06 08:00", kind = "in" }, { at = "2026-10-06 12:00", kind = "out" }, { at = "2026-10-06 12:30", kind = "in" }, { at = "2026-10-06 20:30", kind = "out" },
{ at = "2026-10-07 08:00", kind = "in" }, { at = "2026-10-07 12:00", kind = "out" }, { at = "2026-10-07 12:30", kind = "in" }, { at = "2026-10-07 20:30", kind = "out" },
{ at = "2026-10-08 08:00", kind = "in" }, { at = "2026-10-08 12:00", kind = "out" }, { at = "2026-10-08 12:30", kind = "in" }, { at = "2026-10-08 20:30", kind = "out" },
{ at = "2026-10-09 08:00", kind = "in" }, { at = "2026-10-09 12:00", kind = "out" }, { at = "2026-10-09 12:30", kind = "in" }, { at = "2026-10-09 20:30", kind = "out" },
]
[policy]
zone = "Europe/Brussels"
[[measure]]
id = "hours"
kind = "duration"
[[labor]]
workday = "2026-09-28"
measure = "hours"
quantity = "45h"
category = "work"
recorded = "2026-09-28 18:00"
[[labor]]
workday = "2026-09-21"
measure = "hours"
quantity = "45h"
category = "work"
recorded = "2026-09-21 18:00"
[[labor]]
workday = "2026-09-14"
measure = "hours"
quantity = "45h"
category = "work"
recorded = "2026-09-14 18:00"
[[labor]]
workday = "2026-09-07"
measure = "hours"
quantity = "45h"
category = "work"
recorded = "2026-09-07 18:00"
[[labor]]
workday = "2026-08-31"
measure = "hours"
quantity = "45h"
category = "work"
recorded = "2026-08-31 18:00"
[[labor]]
workday = "2026-08-24"
measure = "hours"
quantity = "45h"
category = "work"
recorded = "2026-08-24 18:00"
[[labor]]
workday = "2026-08-17"
measure = "hours"
quantity = "45h"
category = "work"
recorded = "2026-08-17 18:00"
[[labor]]
workday = "2026-08-10"
measure = "hours"
quantity = "45h"
category = "work"
recorded = "2026-08-10 18:00"
[[labor]]
workday = "2026-08-03"
measure = "hours"
quantity = "45h"
category = "work"
recorded = "2026-08-03 18:00"
[[labor]]
workday = "2026-07-27"
measure = "hours"
quantity = "45h"
category = "work"
recorded = "2026-07-27 18:00"
[[labor]]
workday = "2026-07-20"
measure = "hours"
quantity = "45h"
category = "work"
recorded = "2026-07-20 18:00"
[[labor]]
workday = "2026-07-13"
measure = "hours"
quantity = "45h"
category = "work"
recorded = "2026-07-13 18:00"
[[labor]]
workday = "2026-07-06"
measure = "hours"
quantity = "45h"
category = "work"
recorded = "2026-07-06 18:00"
[[labor]]
workday = "2026-06-29"
measure = "hours"
quantity = "45h"
category = "work"
recorded = "2026-06-29 18:00"
[[labor]]
workday = "2026-06-22"
measure = "hours"
quantity = "45h"
category = "work"
recorded = "2026-06-22 18:00"
[[labor]]
workday = "2026-06-15"
measure = "hours"
quantity = "45h"
category = "work"
recorded = "2026-06-15 18:00"
[expect]
week = "2026-10-05"
exceptions = []
A night worker of five 10-hour nights a week, for 17 weeks: 50 hours a week on average, flagged as over 8 hours in each 24 of six working days
scenarios/a-night-worker-averages-8-hours-in-24.toml
description = "A night worker of five 10-hour nights a week, for 17 weeks: 50 hours a week on average, flagged as over 8 hours in each 24 of six working days"
punch = [
{ at = "2026-10-05 19:00", kind = "in" }, { at = "2026-10-05 23:00", kind = "out" }, { at = "2026-10-05 23:30", kind = "in" }, { at = "2026-10-06 05:30", kind = "out" },
{ at = "2026-10-06 19:00", kind = "in" }, { at = "2026-10-06 23:00", kind = "out" }, { at = "2026-10-06 23:30", kind = "in" }, { at = "2026-10-07 05:30", kind = "out" },
{ at = "2026-10-07 19:00", kind = "in" }, { at = "2026-10-07 23:00", kind = "out" }, { at = "2026-10-07 23:30", kind = "in" }, { at = "2026-10-08 05:30", kind = "out" },
{ at = "2026-10-08 19:00", kind = "in" }, { at = "2026-10-08 23:00", kind = "out" }, { at = "2026-10-08 23:30", kind = "in" }, { at = "2026-10-09 05:30", kind = "out" },
{ at = "2026-10-09 19:00", kind = "in" }, { at = "2026-10-09 23:00", kind = "out" }, { at = "2026-10-09 23:30", kind = "in" }, { at = "2026-10-10 05:30", kind = "out" },
]
[policy]
zone = "Europe/Brussels"
[[measure]]
id = "hours"
kind = "duration"
[[employment]]
effective = "2025-01-06"
kind = "hired"
attributes = { night_worker = true }
[[labor]]
workday = "2026-09-28"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-09-28 18:00"
[[labor]]
workday = "2026-09-21"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-09-21 18:00"
[[labor]]
workday = "2026-09-14"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-09-14 18:00"
[[labor]]
workday = "2026-09-07"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-09-07 18:00"
[[labor]]
workday = "2026-08-31"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-08-31 18:00"
[[labor]]
workday = "2026-08-24"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-08-24 18:00"
[[labor]]
workday = "2026-08-17"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-08-17 18:00"
[[labor]]
workday = "2026-08-10"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-08-10 18:00"
[[labor]]
workday = "2026-08-03"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-08-03 18:00"
[[labor]]
workday = "2026-07-27"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-07-27 18:00"
[[labor]]
workday = "2026-07-20"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-07-20 18:00"
[[labor]]
workday = "2026-07-13"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-07-13 18:00"
[[labor]]
workday = "2026-07-06"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-07-06 18:00"
[[labor]]
workday = "2026-06-29"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-06-29 18:00"
[[labor]]
workday = "2026-06-22"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-06-22 18:00"
[[labor]]
workday = "2026-06-15"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-06-15 18:00"
[expect]
week = "2026-10-05"
exceptions = [{ kind = "average_over_48h", at = "2026-10-09 23:30" }, { kind = "night_average_over_8h", at = "2026-10-09 23:30" }]
Sixteen weeks of 50 hours and a week of five 10-hour days average 50 hours a week over the 17 weeks to Sunday 11 October: more than 48, flagged about the week's last work. Nobody's pay changes
scenarios/a-rolling-average-over-48-hours-is-flagged.toml
description = "Sixteen weeks of 50 hours and a week of five 10-hour days average 50 hours a week over the 17 weeks to Sunday 11 October: more than 48, flagged about the week's last work. Nobody's pay changes"
punch = [
{ at = "2026-10-05 08:00", kind = "in" }, { at = "2026-10-05 12:00", kind = "out" }, { at = "2026-10-05 12:30", kind = "in" }, { at = "2026-10-05 18:30", kind = "out" },
{ at = "2026-10-06 08:00", kind = "in" }, { at = "2026-10-06 12:00", kind = "out" }, { at = "2026-10-06 12:30", kind = "in" }, { at = "2026-10-06 18:30", kind = "out" },
{ at = "2026-10-07 08:00", kind = "in" }, { at = "2026-10-07 12:00", kind = "out" }, { at = "2026-10-07 12:30", kind = "in" }, { at = "2026-10-07 18:30", kind = "out" },
{ at = "2026-10-08 08:00", kind = "in" }, { at = "2026-10-08 12:00", kind = "out" }, { at = "2026-10-08 12:30", kind = "in" }, { at = "2026-10-08 18:30", kind = "out" },
{ at = "2026-10-09 08:00", kind = "in" }, { at = "2026-10-09 12:00", kind = "out" }, { at = "2026-10-09 12:30", kind = "in" }, { at = "2026-10-09 18:30", kind = "out" },
]
[policy]
zone = "Europe/Brussels"
[[measure]]
id = "hours"
kind = "duration"
[[labor]]
workday = "2026-09-28"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-09-28 18:00"
[[labor]]
workday = "2026-09-21"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-09-21 18:00"
[[labor]]
workday = "2026-09-14"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-09-14 18:00"
[[labor]]
workday = "2026-09-07"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-09-07 18:00"
[[labor]]
workday = "2026-08-31"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-08-31 18:00"
[[labor]]
workday = "2026-08-24"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-08-24 18:00"
[[labor]]
workday = "2026-08-17"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-08-17 18:00"
[[labor]]
workday = "2026-08-10"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-08-10 18:00"
[[labor]]
workday = "2026-08-03"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-08-03 18:00"
[[labor]]
workday = "2026-07-27"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-07-27 18:00"
[[labor]]
workday = "2026-07-20"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-07-20 18:00"
[[labor]]
workday = "2026-07-13"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-07-13 18:00"
[[labor]]
workday = "2026-07-06"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-07-06 18:00"
[[labor]]
workday = "2026-06-29"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-06-29 18:00"
[[labor]]
workday = "2026-06-22"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-06-22 18:00"
[[labor]]
workday = "2026-06-15"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-06-15 18:00"
[expect]
week = "2026-10-05"
exceptions = [{ kind = "average_over_48h", at = "2026-10-09 12:30" }]
Where the law lets a worker opt out of the 48-hour average in writing (the United Kingdom), a layer for those who did turns the average off for them; the rest stays
scenarios/an-individual-opt-out.toml
description = "Where the law lets a worker opt out of the 48-hour average in writing (the United Kingdom), a layer for those who did turns the average off for them; the rest stays"
punch = [
{ at = "2026-10-05 08:00", kind = "in" }, { at = "2026-10-05 12:00", kind = "out" }, { at = "2026-10-05 12:30", kind = "in" }, { at = "2026-10-05 18:30", kind = "out" },
{ at = "2026-10-06 08:00", kind = "in" }, { at = "2026-10-06 12:00", kind = "out" }, { at = "2026-10-06 12:30", kind = "in" }, { at = "2026-10-06 18:30", kind = "out" },
{ at = "2026-10-07 08:00", kind = "in" }, { at = "2026-10-07 12:00", kind = "out" }, { at = "2026-10-07 12:30", kind = "in" }, { at = "2026-10-07 18:30", kind = "out" },
{ at = "2026-10-08 08:00", kind = "in" }, { at = "2026-10-08 12:00", kind = "out" }, { at = "2026-10-08 12:30", kind = "in" }, { at = "2026-10-08 18:30", kind = "out" },
{ at = "2026-10-09 08:00", kind = "in" }, { at = "2026-10-09 12:00", kind = "out" }, { at = "2026-10-09 12:30", kind = "in" }, { at = "2026-10-09 18:30", kind = "out" },
]
[policy]
zone = "Europe/Brussels"
[[measure]]
id = "hours"
kind = "duration"
[[employment]]
effective = "2025-01-06"
kind = "hired"
attributes = { opted_out = true }
[[labor]]
workday = "2026-09-28"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-09-28 18:00"
[[labor]]
workday = "2026-09-21"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-09-21 18:00"
[[labor]]
workday = "2026-09-14"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-09-14 18:00"
[[labor]]
workday = "2026-09-07"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-09-07 18:00"
[[labor]]
workday = "2026-08-31"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-08-31 18:00"
[[labor]]
workday = "2026-08-24"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-08-24 18:00"
[[labor]]
workday = "2026-08-17"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-08-17 18:00"
[[labor]]
workday = "2026-08-10"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-08-10 18:00"
[[labor]]
workday = "2026-08-03"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-08-03 18:00"
[[labor]]
workday = "2026-07-27"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-07-27 18:00"
[[labor]]
workday = "2026-07-20"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-07-20 18:00"
[[labor]]
workday = "2026-07-13"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-07-13 18:00"
[[labor]]
workday = "2026-07-06"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-07-06 18:00"
[[labor]]
workday = "2026-06-29"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-06-29 18:00"
[[labor]]
workday = "2026-06-22"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-06-22 18:00"
[[labor]]
workday = "2026-06-15"
measure = "hours"
quantity = "50h"
category = "work"
recorded = "2026-06-15 18:00"
[[layer]]
id = "opted-out"
applies_to = "attributes.opted_out = true"
[[layer.step]]
id = "average"
change = "disable"
[expect]
week = "2026-10-05"
exceptions = []
Where the weekly rest is taken as 48 hours in each 14 days, in stretches of 24 or more, thirteen days of 6 hours and the fourteenth off leave 32 hours of rest from Saturday 14:00, flagged; a week of five days with its 64-hour weekend in the fortnight would have met it
scenarios/forty-eight-hours-in-fourteen-days.toml
description = "Where the weekly rest is taken as 48 hours in each 14 days, in stretches of 24 or more, thirteen days of 6 hours and the fourteenth off leave 32 hours of rest from Saturday 14:00, flagged; a week of five days with its 64-hour weekend in the fortnight would have met it"
punch = [
{ at = "2026-10-05 08:00", kind = "in" }, { at = "2026-10-05 14:00", kind = "out" },
{ at = "2026-10-06 08:00", kind = "in" }, { at = "2026-10-06 14:00", kind = "out" },
{ at = "2026-10-07 08:00", kind = "in" }, { at = "2026-10-07 14:00", kind = "out" },
{ at = "2026-10-08 08:00", kind = "in" }, { at = "2026-10-08 14:00", kind = "out" },
{ at = "2026-10-09 08:00", kind = "in" }, { at = "2026-10-09 14:00", kind = "out" },
{ at = "2026-10-10 08:00", kind = "in" }, { at = "2026-10-10 14:00", kind = "out" },
{ at = "2026-10-11 08:00", kind = "in" }, { at = "2026-10-11 14:00", kind = "out" },
{ at = "2026-10-12 08:00", kind = "in" }, { at = "2026-10-12 14:00", kind = "out" },
{ at = "2026-10-13 08:00", kind = "in" }, { at = "2026-10-13 14:00", kind = "out" },
{ at = "2026-10-14 08:00", kind = "in" }, { at = "2026-10-14 14:00", kind = "out" },
{ at = "2026-10-15 08:00", kind = "in" }, { at = "2026-10-15 14:00", kind = "out" },
{ at = "2026-10-16 08:00", kind = "in" }, { at = "2026-10-16 14:00", kind = "out" },
{ at = "2026-10-17 08:00", kind = "in" }, { at = "2026-10-17 14:00", kind = "out" },
]
[policy]
zone = "Europe/Brussels"
[[measure]]
id = "hours"
kind = "duration"
[[layer]]
id = "fortnightly-rest"
[[layer.step]]
id = "weekly-rest"
change = "params"
params = { at_least = "48h", shortest = "24h", window = { every = "2w", starts = "2026-10-05" } }
[expect]
week = "2026-10-12"
exceptions = [{ kind = "weekly_rest_short", at = "2026-10-17 08:00" }]
Night work with special hazards: a night of 9 hours of work is flagged about its last stretch, past 8 hours in the 24 from its start
scenarios/hazardous-night-work-over-8-hours.toml
description = "Night work with special hazards: a night of 9 hours of work is flagged about its last stretch, past 8 hours in the 24 from its start"
punch = [
{ at = "2026-10-05 19:00", kind = "in" }, { at = "2026-10-05 23:00", kind = "out" },
{ at = "2026-10-05 23:30", kind = "in" }, { at = "2026-10-06 04:30", kind = "out" },
]
[policy]
zone = "Europe/Brussels"
[[measure]]
id = "hours"
kind = "duration"
[[employment]]
effective = "2025-01-06"
kind = "hired"
attributes = { night_worker = true, hazardous = true }
[expect]
week = "2026-10-05"
exceptions = [{ kind = "night_over_8h_in_24", at = "2026-10-05 23:30" }]
Work until 23:30 on Monday and again from 07:00 on Tuesday leaves 7 hours and a half' rest: flagged as rest_too_short on Tuesday's work
scenarios/less-than-11-hours-between-days-is-flagged.toml
description = "Work until 23:30 on Monday and again from 07:00 on Tuesday leaves 7 hours and a half' rest: flagged as rest_too_short on Tuesday's work"
punch = [
{ at = "2026-10-05 15:00", kind = "in" }, { at = "2026-10-05 19:00", kind = "out" },
{ at = "2026-10-05 19:30", kind = "in" }, { at = "2026-10-05 23:30", kind = "out" },
{ at = "2026-10-06 07:00", kind = "in" }, { at = "2026-10-06 11:00", kind = "out" },
{ at = "2026-10-06 11:30", kind = "in" }, { at = "2026-10-06 15:30", kind = "out" },
]
[policy]
zone = "Europe/Brussels"
[[measure]]
id = "hours"
kind = "duration"
[expect]
week = "2026-10-05"
exceptions = [{ kind = "rest_too_short", at = "2026-10-06 07:00" }]
Six hours each of the seven days of the week: the longest rest is 18 hours, short of the 35 a week, flagged about the week's last work
scenarios/seven-days-in-a-row-leave-no-weekly-rest.toml
description = "Six hours each of the seven days of the week: the longest rest is 18 hours, short of the 35 a week, flagged about the week's last work"
punch = [
{ at = "2026-10-05 08:00", kind = "in" }, { at = "2026-10-05 14:00", kind = "out" },
{ at = "2026-10-06 08:00", kind = "in" }, { at = "2026-10-06 14:00", kind = "out" },
{ at = "2026-10-07 08:00", kind = "in" }, { at = "2026-10-07 14:00", kind = "out" },
{ at = "2026-10-08 08:00", kind = "in" }, { at = "2026-10-08 14:00", kind = "out" },
{ at = "2026-10-09 08:00", kind = "in" }, { at = "2026-10-09 14:00", kind = "out" },
{ at = "2026-10-10 08:00", kind = "in" }, { at = "2026-10-10 14:00", kind = "out" },
{ at = "2026-10-11 08:00", kind = "in" }, { at = "2026-10-11 14:00", kind = "out" },
]
[policy]
zone = "Europe/Brussels"
[[measure]]
id = "hours"
kind = "duration"
[expect]
week = "2026-10-05"
exceptions = [{ kind = "weekly_rest_short", at = "2026-10-11 08:00" }]