Daily overtime where the work location's law has it
The rule
Some jurisdictions pay overtime past a number of hours in a day: California and Alaska past 8; Nevada past 8 in the 24 hours from when work starts, for employees paid under one and a half times its minimum wage; Colorado past 12. Most pay it only past 40 hours in a week. A person who works at locations in several jurisdictions is owed daily overtime for the days they work where the law has it, and not for the others.
Who uses it
Employers with sites in more than one state or province: a retailer with stores on both sides of a border, a staffing agency placing the same worker at clients in different places, field crews moved between projects.
How the recipe does it
Configuration only: a package (package.toml) of one layer for the
jurisdiction, as the
overtime_by_jurisdiction recipe does, adding a daily standard
threshold. Each work location has a jurisdiction (a string the builder
chooses: us-ca, uk), and a person’s location is dated: from the day
they move, their days are worked out at the new location (in its time zone
too). The layer applies on the days the person’s location is in the
jurisdiction, so the step runs on those days and no others.
[[layer]]id = "us-ca"applies_to = "jurisdiction = us-ca"[[layer.step]]id = "daily"uses = "standard/threshold"params = { window = "day", over = "8h", to = "overtime" }Each state is a layer of its own, the same standard step with its own limit and window:
[[layer]]id = "us-ak"applies_to = "jurisdiction = us-ak"[[layer.step]]id = "daily-ak"uses = "standard/threshold"params = { window = "day", over = "8h", to = "overtime" }
[[layer]]id = "us-nv"applies_to = "jurisdiction = us-nv and attributes.nv_daily_overtime = true"[[layer.step]]id = "daily-nv"uses = "standard/threshold"params = { window = "24h", over = "8h", to = "overtime" }
[[layer]]id = "us-co"applies_to = "jurisdiction = us-co"[[layer.step]]id = "daily-co"uses = "standard/threshold"params = { window = "day", over = "12h", to = "overtime" }Nevada’s rule is for those paid under a rate, and eligibility rules compare
values, not amounts: the payroll marks the people under the threshold with
the employment attribute nv_daily_overtime, dated as their rate is. A
raise past the threshold is an employment change from its day, which takes
the layer away from that day and works the person out again from it.
Colorado’s full rule (12 consecutive hours across midnight too) is the
colorado_overtime recipe; Nevada’s 24 hours, nevada_daily_overtime.
Layers do this without code: the jurisdiction is the layer’s eligibility,
not a parameter of the step. Several jurisdictions with the same rule are
one layer whose rule names them all (jurisdiction = us-ca or jurisdiction = us-nv), and a jurisdiction with a different limit is a layer of its own.
Parameters
| Setting | Meaning |
|---|---|
applies_to | The jurisdictions whose locations pay daily overtime. |
over | The hours a day may have before overtime: "8h". |
to | The category the time past it goes to. |
What the scenarios show
ten-hours-in-california: 10 hours at a California location: 2 of them overtime.moved-mid-week: 10 hours on Monday in Texas, none of them overtime; 10 on Tuesday, at California from that day: 2 of them overtime.alaska-and-colorado-by-their-own-limits: 10 and 13 hours in Alaska are 2 and 5 of overtime; in Colorado from Wednesday, 10 hours are none and 13 hours 1.nevada-only-under-its-rate-threshold: 10 hours under the threshold are 2 of overtime; after a raise past it, 10 hours are none.
Legal note
Which law applies to a day’s work (where the person works, where the employer is, where the person lives) depends on the jurisdictions involved; check before using it.
Get the recipe
The recipe’s package and its scenarios are in the example packages repository: attendance/daily_overtime_by_location. 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:
name = "daily_overtime_by_location"version = "1.0.0"description = "Daily overtime on the days a person works where the law has it: past 8 hours in California and Alaska, past 8 in 24 hours in Nevada for those paid under its threshold, past 12 in Colorado; none on the days they work elsewhere."
# California: past 8 hours a day is overtime. The layer applies on the# days the person's work location is in the jurisdiction, so a person# moved there mid-week has daily overtime from the day they move.[[layer]]id = "us-ca"applies_to = "jurisdiction = us-ca"[[layer.step]]id = "daily"uses = "standard/threshold"params = { window = "day", over = "8h", to = "overtime" }
# Alaska: past 8 hours a day is overtime, the same rule.[[layer]]id = "us-ak"applies_to = "jurisdiction = us-ak"[[layer.step]]id = "daily-ak"uses = "standard/threshold"params = { window = "day", over = "8h", to = "overtime" }
# Nevada: past 8 hours in the 24 from when work starts, for those paid# under one and a half times its minimum wage: the payroll marks them,# dated as their rate is, with the employment attribute# nv_daily_overtime.[[layer]]id = "us-nv"applies_to = "jurisdiction = us-nv and attributes.nv_daily_overtime = true"[[layer.step]]id = "daily-nv"uses = "standard/threshold"params = { window = "24h", over = "8h", to = "overtime" }
# Colorado: past 12 hours in a workday.[[layer]]id = "us-co"applies_to = "jurisdiction = us-co"[[layer.step]]id = "daily-co"uses = "standard/threshold"params = { window = "day", over = "12h", to = "overtime" }Scenarios
Each scenario gives a person’s punches and setup and the timecard they must produce, worked out with this package adopted (the format).
10 hours on Monday and 13 on Tuesday in Anchorage: past 8 a day, 2 and 5 hours of overtime. From Wednesday the person works in Denver: of 10 hours none is overtime, of 13 the last 1, past Colorado's 12
description = "10 hours on Monday and 13 on Tuesday in Anchorage: past 8 a day, 2 and 5 hours of overtime. From Wednesday the person works in Denver: of 10 hours none is overtime, of 13 the last 1, past Colorado's 12"
punch = [ { at = "2026-10-05 07:00", kind = "in" }, { at = "2026-10-05 17:00", kind = "out" }, { at = "2026-10-06 07:00", kind = "in" }, { at = "2026-10-06 20:00", kind = "out" }, { at = "2026-10-07 07:00", kind = "in" }, { at = "2026-10-07 17:00", kind = "out" }, { at = "2026-10-08 07:00", kind = "in" }, { at = "2026-10-08 20:00", kind = "out" },]
[policy]zone = "America/Anchorage"
[[location]]id = "anchorage"zone = "America/Anchorage"jurisdiction = "us-ak"
[[location]]id = "denver"zone = "America/Denver"jurisdiction = "us-co"
[[employment]]effective = "2026-01-05"kind = "hired"location = "anchorage"
[[employment]]effective = "2026-10-07"kind = "changed"location = "denver"
[expect]week = "2026-10-05"allocations = [ "2026-10-05 07:00-15:00 work 8.00", "2026-10-05 15:00-17:00 overtime 2.00", "2026-10-06 07:00-15:00 work 8.00", "2026-10-06 15:00-20:00 overtime 5.00", "2026-10-07 07:00-17:00 work 10.00", "2026-10-08 07:00-19:00 work 12.00", "2026-10-08 19:00-20:00 overtime 1.00",]10 hours on Monday at a Texas location, none of them overtime; 10 on Tuesday, at a California location from that day: the last 2 are overtime
description = "10 hours on Monday at a Texas location, none of them overtime; 10 on Tuesday, at a California location from that day: the last 2 are overtime"
punch = [ { at = "2026-10-05 07:00", kind = "in" }, { at = "2026-10-05 17:00", kind = "out" }, { at = "2026-10-06 07:00", kind = "in" }, { at = "2026-10-06 17:00", kind = "out" },]
[policy]zone = "America/Chicago"
[[location]]id = "dallas"zone = "America/Chicago"jurisdiction = "us-tx"
[[location]]id = "fresno"zone = "America/Los_Angeles"jurisdiction = "us-ca"
[[employment]]effective = "2026-01-05"kind = "hired"location = "dallas"
[[employment]]effective = "2026-10-06"kind = "changed"location = "fresno"
[expect]week = "2026-10-05"allocations = [ "2026-10-05 07:00-17:00 work 10.00", "2026-10-06 07:00-15:00 work 8.00", "2026-10-06 15:00-17:00 overtime 2.00",]In Reno, paid under Nevada's threshold, the payroll marks the person nv_daily_overtime: of Monday's 10 hours the last 2 are overtime. A raise from Tuesday takes them over the threshold and the payroll takes the mark off from that day: Tuesday's 10 hours have none
description = "In Reno, paid under Nevada's threshold, the payroll marks the person nv_daily_overtime: of Monday's 10 hours the last 2 are overtime. A raise from Tuesday takes them over the threshold and the payroll takes the mark off from that day: Tuesday's 10 hours have none"
punch = [ { at = "2026-10-05 07:00", kind = "in" }, { at = "2026-10-05 17:00", kind = "out" }, { at = "2026-10-06 07:00", kind = "in" }, { at = "2026-10-06 17:00", kind = "out" },]
[policy]zone = "America/Los_Angeles"
[[location]]id = "reno"zone = "America/Los_Angeles"jurisdiction = "us-nv"
[[employment]]effective = "2026-01-05"kind = "hired"location = "reno"attributes = { nv_daily_overtime = true }
[[employment]]effective = "2026-10-06"kind = "changed"attributes = { nv_daily_overtime = false }
[expect]week = "2026-10-05"allocations = [ "2026-10-05 07:00-15:00 work 8.00", "2026-10-05 15:00-17:00 overtime 2.00", "2026-10-06 07:00-17:00 work 10.00",]10 hours at a California location: the last 2 are overtime
description = "10 hours at a California location: the last 2 are overtime"
punch = [ { at = "2026-10-05 07:00", kind = "in" }, { at = "2026-10-05 17:00", kind = "out" },]
[policy]zone = "America/Chicago"
[[location]]id = "fresno"zone = "America/Los_Angeles"jurisdiction = "us-ca"
[[employment]]effective = "2026-01-05"kind = "hired"location = "fresno"
[expect]week = "2026-10-05"allocations = [ "2026-10-05 07:00-15:00 work 8.00", "2026-10-05 15:00-17:00 overtime 2.00",]