Skip to content

Overtime by jurisdiction, picked by where people work

The rule

Overtime law differs by place. A company working across borders follows each place’s rule for the people working there:

JurisdictionOvertime
Anywhere else (here: Texas)Past 40 hours in a workweek.
Ontario, CanadaPast 44 hours in a workweek.
British Columbia, CanadaPast 8 hours a day, double time past 12, and past 40 hours a week.
AustraliaPast 38 ordinary hours a week.
Great BritainNone set by law; contracts decide.

Who uses it

Employers with sites in several countries, states or provinces, and payroll providers that keep each jurisdiction’s rules up to date for their customers (published once as a shared package, adopted by each).

How the recipe does it

Configuration only: a package (package.toml) of policy layers, one general and one for each jurisdiction, each picked by an eligibility rule on the jurisdiction of the person’s work location that day.

[[layer]]
id = "weekly"
[[layer.step]]
id = "weekly"
uses = "standard/threshold"
params = { over = "40h", to = "overtime", window = "week", counts = ["work"] }
[[layer]]
id = "ca-on"
order = 10
applies_to = "jurisdiction = ca-on"
[[layer.step]]
id = "weekly"
change = "params"
params = { over = "44h" }

Each jurisdiction’s layer says only how it differs from the general one:

  • Ontario and Australia change the weekly step’s parameters.
  • British Columbia adds a daily threshold of two tiers before the weekly one: past 12 hours to double time, then the regular time left past 8 to overtime. The weekly step counts only work, so an hour the daily step took is never overtime twice.
  • Great Britain turns the weekly step off (change = "disable"). A tenant’s own layer can turn it on again for the people whose contracts pay overtime, picked by an employment attribute (applies_to = "jurisdiction = gb and attributes.paid_overtime = true", change = "enable").

A work location carries its jurisdiction (us-tx, ca-on, a string the builder chooses), and each person’s employment says where they work from a day. A layer applies on the days its rule picks the person, so someone who moves from Texas to British Columbia mid-week has the daily rule from the day they move. Every line says which layers gave its step ([[email protected]/weekly rev 1, [email protected]/ca-on rev 1]).

The cookbook’s daily_overtime_by_location does a similar job in Lua, reading the location in the step; layers do it without code, and show which rule applied in each line’s stamps.

Parameters

LayerSays
weeklyover (40h), counts (work).
ca-on, auover of the weekly step.
ca-bcThe daily step’s tiers: each tier’s over and to.
gbdisable the weekly step.

What the scenarios show

  • forty-hours-where-no-other-rule-applies: Texas, a 45-hour week, 5 hours of overtime and no daily overtime.
  • ontario-counts-past-44: the same week in Ontario, 1 hour.
  • british-columbia-by-the-day-and-the-week: a 13-hour day, and a week whose regular time passes 40 on Saturday.
  • australia-38-ordinary-hours: 40 hours, 2 of overtime.
  • great-britain-has-no-statutory-overtime: 45 hours, all regular.
  • a-contract-turns-overtime-back-on: in Great Britain, with a contract that pays overtime, 5 hours of overtime.

These are simplified forms of each jurisdiction’s general rule, for illustration. Every one has exemptions, averaging agreements, award or industry rules and thresholds that change; check the rules where you operate before relying on them.

Get the recipe

The recipe’s package and its scenarios are in the example packages repository: attendance/overtime_by_jurisdiction. 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:

overtime_by_jurisdiction/package.toml
name = "overtime_by_jurisdiction"
version = "1.0.0"
description = "Daily and weekly overtime as each jurisdiction has it, picked by where people work: 40 hours a week by default, 44 in Ontario, 8 a day and 40 a week with double time past 12 in British Columbia, 38 in Australia, none in Great Britain."
# Everyone: time past 40 hours in a workweek is overtime. It counts only
# regular time, so an hour a daily rule made overtime is never counted
# twice.
[[layer]]
id = "weekly"
[[layer.step]]
id = "weekly"
uses = "standard/threshold"
params = { over = "40h", to = "overtime", window = "week", counts = ["work"] }
# Ontario: overtime past 44 hours a week.
[[layer]]
id = "ca-on"
order = 10
applies_to = "jurisdiction = ca-on"
[[layer.step]]
id = "weekly"
change = "params"
params = { over = "44h" }
# British Columbia: past 8 hours a day is overtime and past 12 double
# time, one daily threshold of two tiers before the weekly count, which
# then counts what is left.
[[layer]]
id = "ca-bc"
order = 10
applies_to = "jurisdiction = ca-bc"
[[layer.step]]
id = "daily"
uses = "standard/threshold"
params = { window = "day", counts = ["work"], tiers = [{ over = "8h", to = "overtime" }, { over = "12h", to = "double_time" }] }
before = "weekly"
# Australia: 38 ordinary hours a week.
[[layer]]
id = "au"
order = 10
applies_to = "jurisdiction = au"
[[layer.step]]
id = "weekly"
change = "params"
params = { over = "38h" }
# Great Britain: no statutory overtime; the weekly rule is turned off.
[[layer]]
id = "gb"
order = 10
applies_to = "jurisdiction = gb"
[[layer.step]]
id = "weekly"
change = "disable"

Scenarios

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

In Great Britain the weekly rule is off, but people whose employment contract pays overtime (the employment attribute paid_overtime) have a layer of their own that turns it back on: their 45-hour week has 5 hours of overtime
scenarios/a-contract-turns-overtime-back-on.toml
description = "In Great Britain the weekly rule is off, but people whose employment contract pays overtime (the employment attribute paid_overtime) have a layer of their own that turns it back on: their 45-hour week has 5 hours of overtime"
punch = [
{ at = "2026-10-05 08:00", kind = "in" }, { at = "2026-10-05 17:00", kind = "out" },
{ at = "2026-10-06 08:00", kind = "in" }, { at = "2026-10-06 17:00", kind = "out" },
{ at = "2026-10-07 08:00", kind = "in" }, { at = "2026-10-07 17:00", kind = "out" },
{ at = "2026-10-08 08:00", kind = "in" }, { at = "2026-10-08 17:00", kind = "out" },
{ at = "2026-10-09 08:00", kind = "in" }, { at = "2026-10-09 17:00", kind = "out" },
]
[policy]
zone = "Europe/London"
[[location]]
id = "leeds"
zone = "Europe/London"
jurisdiction = "gb"
[[employment]]
effective = "2026-01-05"
kind = "hired"
location = "leeds"
attributes = { paid_overtime = true }
# The tenant's own layer, after the package's: for people in Great
# Britain whose contract pays overtime, the weekly step is on again.
[[layer]]
id = "gb-contract-overtime"
order = 20
applies_to = "jurisdiction = gb and attributes.paid_overtime = true"
[[layer.step]]
id = "weekly"
change = "enable"
[expect]
week = "2026-10-05"
allocations = [
"2026-10-05 08:00-17:00 work 9.00",
"2026-10-06 08:00-17:00 work 9.00",
"2026-10-07 08:00-17:00 work 9.00",
"2026-10-08 08:00-17:00 work 9.00",
"2026-10-09 08:00-12:00 work 4.00",
"2026-10-09 12:00-17:00 overtime 5.00",
]
In Australia ordinary hours are 38 a week: five 8-hour days are 40 hours, the last 2 overtime
scenarios/australia-38-ordinary-hours.toml
description = "In Australia ordinary hours are 38 a week: five 8-hour days are 40 hours, the last 2 overtime"
punch = [
{ at = "2026-10-05 08:00", kind = "in" }, { at = "2026-10-05 16:00", kind = "out" },
{ at = "2026-10-06 08:00", kind = "in" }, { at = "2026-10-06 16:00", kind = "out" },
{ at = "2026-10-07 08:00", kind = "in" }, { at = "2026-10-07 16:00", kind = "out" },
{ at = "2026-10-08 08:00", kind = "in" }, { at = "2026-10-08 16:00", kind = "out" },
{ at = "2026-10-09 08:00", kind = "in" }, { at = "2026-10-09 16:00", kind = "out" },
]
[policy]
zone = "Australia/Sydney"
[[location]]
id = "sydney"
zone = "Australia/Sydney"
jurisdiction = "au"
[[employment]]
effective = "2026-01-05"
kind = "hired"
location = "sydney"
[expect]
week = "2026-10-05"
allocations = [
"2026-10-05 08:00-16:00 work 8.00",
"2026-10-06 08:00-16:00 work 8.00",
"2026-10-07 08:00-16:00 work 8.00",
"2026-10-08 08:00-16:00 work 8.00",
"2026-10-09 08:00-14:00 work 6.00",
"2026-10-09 14:00-16:00 overtime 2.00",
]
In British Columbia a 13-hour Monday is 8 hours of work, 4 of overtime and 1 of double time. With four 8-hour days and 4 hours on Saturday the week has 44 hours of regular time, and the weekly threshold makes Saturday overtime: the hours the daily rule took are not counted again
scenarios/british-columbia-by-the-day-and-the-week.toml
description = "In British Columbia a 13-hour Monday is 8 hours of work, 4 of overtime and 1 of double time. With four 8-hour days and 4 hours on Saturday the week has 44 hours of regular time, and the weekly threshold makes Saturday overtime: the hours the daily rule took are not counted again"
punch = [
{ at = "2026-10-05 06:00", kind = "in" }, { at = "2026-10-05 19:00", kind = "out" },
{ at = "2026-10-06 08:00", kind = "in" }, { at = "2026-10-06 16:00", kind = "out" },
{ at = "2026-10-07 08:00", kind = "in" }, { at = "2026-10-07 16:00", kind = "out" },
{ at = "2026-10-08 08:00", kind = "in" }, { at = "2026-10-08 16:00", kind = "out" },
{ at = "2026-10-09 08:00", kind = "in" }, { at = "2026-10-09 16:00", kind = "out" },
{ at = "2026-10-10 08:00", kind = "in" }, { at = "2026-10-10 12:00", kind = "out" },
]
[policy]
zone = "America/Vancouver"
[[location]]
id = "vancouver"
zone = "America/Vancouver"
jurisdiction = "ca-bc"
[[employment]]
effective = "2026-01-05"
kind = "hired"
location = "vancouver"
[expect]
week = "2026-10-05"
allocations = [
"2026-10-05 06:00-14:00 work 8.00",
"2026-10-05 14:00-18:00 overtime 4.00",
"2026-10-05 18:00-19:00 double_time 1.00",
"2026-10-06 08:00-16:00 work 8.00",
"2026-10-07 08:00-16:00 work 8.00",
"2026-10-08 08:00-16:00 work 8.00",
"2026-10-09 08:00-16:00 work 8.00",
"2026-10-10 08:00-12:00 overtime 4.00",
]
In Texas no layer but the general one applies: five 9-hour days are 45 hours, the last 5 overtime, and a 9-hour day is no overtime on its own
scenarios/forty-hours-where-no-other-rule-applies.toml
description = "In Texas no layer but the general one applies: five 9-hour days are 45 hours, the last 5 overtime, and a 9-hour day is no overtime on its own"
punch = [
{ at = "2026-10-05 08:00", kind = "in" }, { at = "2026-10-05 17:00", kind = "out" },
{ at = "2026-10-06 08:00", kind = "in" }, { at = "2026-10-06 17:00", kind = "out" },
{ at = "2026-10-07 08:00", kind = "in" }, { at = "2026-10-07 17:00", kind = "out" },
{ at = "2026-10-08 08:00", kind = "in" }, { at = "2026-10-08 17:00", kind = "out" },
{ at = "2026-10-09 08:00", kind = "in" }, { at = "2026-10-09 17:00", kind = "out" },
]
[policy]
zone = "America/Chicago"
[[location]]
id = "dallas"
zone = "America/Chicago"
jurisdiction = "us-tx"
[[employment]]
effective = "2026-01-05"
kind = "hired"
location = "dallas"
[expect]
week = "2026-10-05"
allocations = [
"2026-10-05 08:00-17:00 work 9.00",
"2026-10-06 08:00-17:00 work 9.00",
"2026-10-07 08:00-17:00 work 9.00",
"2026-10-08 08:00-17:00 work 9.00",
"2026-10-09 08:00-12:00 work 4.00",
"2026-10-09 12:00-17:00 overtime 5.00",
]
stamps = ["2026-10-09 12:00-17:00 overtime: weekly [[email protected]/weekly rev 1]: moved 5h from work to overtime: over 40h in the week"]
In Great Britain the weekly rule is turned off: a 45-hour week is all regular time. Overtime there is a matter of contract, which a further layer would add
scenarios/great-britain-has-no-statutory-overtime.toml
description = "In Great Britain the weekly rule is turned off: a 45-hour week is all regular time. Overtime there is a matter of contract, which a further layer would add"
punch = [
{ at = "2026-10-05 08:00", kind = "in" }, { at = "2026-10-05 17:00", kind = "out" },
{ at = "2026-10-06 08:00", kind = "in" }, { at = "2026-10-06 17:00", kind = "out" },
{ at = "2026-10-07 08:00", kind = "in" }, { at = "2026-10-07 17:00", kind = "out" },
{ at = "2026-10-08 08:00", kind = "in" }, { at = "2026-10-08 17:00", kind = "out" },
{ at = "2026-10-09 08:00", kind = "in" }, { at = "2026-10-09 17:00", kind = "out" },
]
[policy]
zone = "Europe/London"
[[location]]
id = "leeds"
zone = "Europe/London"
jurisdiction = "gb"
[[employment]]
effective = "2026-01-05"
kind = "hired"
location = "leeds"
[expect]
week = "2026-10-05"
allocations = [
"2026-10-05 08:00-17:00 work 9.00",
"2026-10-06 08:00-17:00 work 9.00",
"2026-10-07 08:00-17:00 work 9.00",
"2026-10-08 08:00-17:00 work 9.00",
"2026-10-09 08:00-17:00 work 9.00",
]
In Ontario the weekly threshold is 44 hours: the same 45-hour week has 1 hour of overtime, and the stamp names the Ontario layer
scenarios/ontario-counts-past-44.toml
description = "In Ontario the weekly threshold is 44 hours: the same 45-hour week has 1 hour of overtime, and the stamp names the Ontario layer"
punch = [
{ at = "2026-10-05 08:00", kind = "in" }, { at = "2026-10-05 17:00", kind = "out" },
{ at = "2026-10-06 08:00", kind = "in" }, { at = "2026-10-06 17:00", kind = "out" },
{ at = "2026-10-07 08:00", kind = "in" }, { at = "2026-10-07 17:00", kind = "out" },
{ at = "2026-10-08 08:00", kind = "in" }, { at = "2026-10-08 17:00", kind = "out" },
{ at = "2026-10-09 08:00", kind = "in" }, { at = "2026-10-09 17:00", kind = "out" },
]
[policy]
zone = "America/Toronto"
[[location]]
id = "toronto"
zone = "America/Toronto"
jurisdiction = "ca-on"
[[employment]]
effective = "2026-01-05"
kind = "hired"
location = "toronto"
[expect]
week = "2026-10-05"
allocations = [
"2026-10-05 08:00-17:00 work 9.00",
"2026-10-06 08:00-17:00 work 9.00",
"2026-10-07 08:00-17:00 work 9.00",
"2026-10-08 08:00-17:00 work 9.00",
"2026-10-09 08:00-16:00 work 8.00",
"2026-10-09 16:00-17:00 overtime 1.00",
]
stamps = ["2026-10-09 16:00-17:00 overtime: weekly [[email protected]/weekly rev 1, [email protected]/ca-on rev 1]: moved 1h from work to overtime: over 44h in the week"]