Skip to content

The 8 and 80 system (hospitals and residential care)

The rule

  • Hours past 8 in a workday are overtime.
  • Straight-time hours past 80 in a fixed, recurring 14-day period are overtime. Hours already paid as daily overtime are not counted toward the 80 again.
  • There is no 40-hour workweek: a week of 48 hours followed by one of 32 is no overtime.

Who uses it

Hospitals and residential care facilities that agree with their staff, before the work is done, to count overtime over 14 days instead of each workweek. Nurses’ and care workers’ schedules often run long one week and short the next, and the 14-day period pays for that pattern evenly.

How the recipe does it

Configuration only: a package (package.toml) of one layer, paid every two weeks, with two standard threshold steps in this order.

[[layer]]
id = "overtime"
settings = { pay_periods = { every_days = 14, from = "2026-09-28" } }
[[layer.step]]
id = "daily"
uses = "standard/threshold"
params = { over = "8h", to = "overtime", window = "day" }
[[layer.step]]
id = "fourteen-days"
uses = "standard/threshold"
params = { over = "80h", to = "overtime", window = { every = "14d", starts = "2026-09-28" } }
  • daily moves each workday’s time past 8 hours to overtime, the latest first.
  • fourteen-days runs on each 14-day period from the agreed start (starts), whatever the pay periods are. By default a threshold counts every worked category except its own to, so the daily overtime is not counted again: what is past 80 is straight time only.
  • A 14-day period that starts in an earlier pay period (a hospital paid weekly) counts the earlier period’s hours without moving them; the overtime falls in the later period, the latest hours first.

The order matters: the 14-day threshold works on what the daily one left.

Parameters

StepParameterMeaning
dailyover, toHours a workday may have (8h), and where the rest goes.
fourteen-daysover, toStraight-time hours the 14 days may have (80h), and where the rest goes.
fourteen-dayswindowThe 14-day period: every = "14d" from the date it was agreed to start.
bothcountsNot set: every worked category but overtime. Paid leave and holidays set up as not worked do not count.

What the scenarios show

  • ten-hour-days-are-daily-overtime: eight 10-hour days are 16 hours of daily overtime; the 64 straight hours left are under 80.
  • past-eighty-in-the-fourteen-days: eleven 8-hour days, 48 hours in the first week: no overtime that week, and the 8 hours past 80 are the second Friday’s.
  • no-hour-is-overtime-twice: eleven 9-hour days are 11 hours of daily overtime and 8 past 80, not 19.
  • paid-weekly-the-fourteen-days-run-on: paid weekly, the second week’s ledger counts the first week’s 48 hours toward the 80.

This is a common way hospitals and residential care facilities implement the 8 and 80 system under the U.S. Fair Labor Standards Act; check the rules where you operate. The arrangement needs an agreement with the employees before the work is done, the 14-day period must be fixed and recurring, and state law may still require daily or weekly overtime on top of it.

Get the recipe

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

eight_and_eighty_overtime/package.toml
name = "eight_and_eighty_overtime"
version = "1.0.0"
description = "Overtime past 8 hours a workday and past 80 hours in a fixed 14-day period, in place of the 40-hour week, with no hour counted twice."
# Paid every two weeks, the pay period and the 14-day period both from
# Monday 28 September 2026. Each workday, time past 8 hours is overtime;
# then straight time past 80 hours in the 14 days is overtime. The 14-day
# threshold counts the straight time the daily one leaves, so no hour is
# overtime twice.
[[layer]]
id = "overtime"
settings = { pay_periods = { every_days = 14, from = "2026-09-28" } }
[[layer.step]]
id = "daily"
uses = "standard/threshold"
params = { over = "8h", to = "overtime", window = "day" }
[[layer.step]]
id = "fourteen-days"
uses = "standard/threshold"
params = { over = "80h", to = "overtime", window = { every = "14d", starts = "2026-09-28" } }

Scenarios

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

Eleven nine-hour days: each day's hour past 8 is daily overtime (11 hours); the 14-day threshold counts only the 88 straight hours left, so 8 more go to overtime, the latest first. The 11 daily hours are not counted toward the 80 again: counting them would have moved 19
scenarios/no-hour-is-overtime-twice.toml
description = "Eleven nine-hour days: each day's hour past 8 is daily overtime (11 hours); the 14-day threshold counts only the 88 straight hours left, so 8 more go to overtime, the latest first. The 11 daily hours are not counted toward the 80 again: counting them would have moved 19"
punch = [
{ at = "2026-09-28 08:00", kind = "in" }, { at = "2026-09-28 17:00", kind = "out" },
{ at = "2026-09-29 08:00", kind = "in" }, { at = "2026-09-29 17:00", kind = "out" },
{ at = "2026-09-30 08:00", kind = "in" }, { at = "2026-09-30 17:00", kind = "out" },
{ at = "2026-10-01 08:00", kind = "in" }, { at = "2026-10-01 17:00", kind = "out" },
{ at = "2026-10-02 08:00", kind = "in" }, { at = "2026-10-02 17:00", kind = "out" },
{ at = "2026-10-03 08:00", kind = "in" }, { at = "2026-10-03 17:00", kind = "out" },
{ 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"
[expect.period]
day = "2026-09-28"
worked = "99h"
allocations = [
"2026-09-28 08:00-16:00 work 8.00",
"2026-09-28 16:00-17:00 overtime 1.00",
"2026-09-29 08:00-16:00 work 8.00",
"2026-09-29 16:00-17:00 overtime 1.00",
"2026-09-30 08:00-16:00 work 8.00",
"2026-09-30 16:00-17:00 overtime 1.00",
"2026-10-01 08:00-16:00 work 8.00",
"2026-10-01 16:00-17:00 overtime 1.00",
"2026-10-02 08:00-16:00 work 8.00",
"2026-10-02 16:00-17:00 overtime 1.00",
"2026-10-03 08:00-16:00 work 8.00",
"2026-10-03 16:00-17:00 overtime 1.00",
"2026-10-05 08:00-16:00 work 8.00",
"2026-10-05 16:00-17:00 overtime 1.00",
"2026-10-06 08:00-16:00 work 8.00",
"2026-10-06 16:00-17:00 overtime 1.00",
"2026-10-07 08:00-16:00 work 8.00",
"2026-10-07 16:00-17:00 overtime 1.00",
"2026-10-08 08:00-16:00 work 8.00",
"2026-10-08 16:00-17:00 overtime 1.00",
"2026-10-09 08:00-16:00 overtime 8.00",
"2026-10-09 16:00-17:00 overtime 1.00",
]
A hospital paid weekly (its own layer sets weekly pay periods): the 14-day period still runs from 28 September across both pay periods. The first week's 48 hours are no overtime; the second week's ledger counts them, so its own 40 hours take the 8 past 80, the latest first
scenarios/paid-weekly-the-fourteen-days-run-on.toml
description = "A hospital paid weekly (its own layer sets weekly pay periods): the 14-day period still runs from 28 September across both pay periods. The first week's 48 hours are no overtime; the second week's ledger counts them, so its own 40 hours take the 8 past 80, the latest first"
punch = [
{ at = "2026-09-28 08:00", kind = "in" }, { at = "2026-09-28 16:00", kind = "out" },
{ at = "2026-09-29 08:00", kind = "in" }, { at = "2026-09-29 16:00", kind = "out" },
{ at = "2026-09-30 08:00", kind = "in" }, { at = "2026-09-30 16:00", kind = "out" },
{ at = "2026-10-01 08:00", kind = "in" }, { at = "2026-10-01 16:00", kind = "out" },
{ at = "2026-10-02 08:00", kind = "in" }, { at = "2026-10-02 16:00", kind = "out" },
{ at = "2026-10-03 08:00", kind = "in" }, { at = "2026-10-03 16:00", kind = "out" },
{ 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 = "America/Chicago"
pay_periods = { every_days = 7, from = "2026-09-28" }
[expect]
week = "2026-09-28"
worked = "48h"
allocations = [
"2026-09-28 08:00-16:00 work 8.00",
"2026-09-29 08:00-16:00 work 8.00",
"2026-09-30 08:00-16:00 work 8.00",
"2026-10-01 08:00-16:00 work 8.00",
"2026-10-02 08:00-16:00 work 8.00",
"2026-10-03 08:00-16:00 work 8.00",
]
[expect.period]
day = "2026-10-05"
first = "2026-10-05"
last = "2026-10-11"
worked = "40h"
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-16:00 overtime 8.00",
]
Eleven eight-hour days, six in the first week and five in the second: no day is past 8, and the first week's 48 hours are no overtime on their own (there is no 40-hour week); the 88 hours are 8 past 80 in the 14 days, the latest day's, so the second Friday is overtime
scenarios/past-eighty-in-the-fourteen-days.toml
description = "Eleven eight-hour days, six in the first week and five in the second: no day is past 8, and the first week's 48 hours are no overtime on their own (there is no 40-hour week); the 88 hours are 8 past 80 in the 14 days, the latest day's, so the second Friday is overtime"
punch = [
{ at = "2026-09-28 08:00", kind = "in" }, { at = "2026-09-28 16:00", kind = "out" },
{ at = "2026-09-29 08:00", kind = "in" }, { at = "2026-09-29 16:00", kind = "out" },
{ at = "2026-09-30 08:00", kind = "in" }, { at = "2026-09-30 16:00", kind = "out" },
{ at = "2026-10-01 08:00", kind = "in" }, { at = "2026-10-01 16:00", kind = "out" },
{ at = "2026-10-02 08:00", kind = "in" }, { at = "2026-10-02 16:00", kind = "out" },
{ at = "2026-10-03 08:00", kind = "in" }, { at = "2026-10-03 16:00", kind = "out" },
{ 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 = "America/Chicago"
[expect.period]
day = "2026-09-28"
worked = "88h"
allocations = [
"2026-09-28 08:00-16:00 work 8.00",
"2026-09-29 08:00-16:00 work 8.00",
"2026-09-30 08:00-16:00 work 8.00",
"2026-10-01 08:00-16:00 work 8.00",
"2026-10-02 08:00-16:00 work 8.00",
"2026-10-03 08:00-16:00 work 8.00",
"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-16:00 overtime 8.00",
]
stamps = [
"2026-10-09 08:00-16:00 overtime: fourteen-days [[email protected]/overtime rev 1]: moved 8h from work to overtime: over 80h in the 14 days",
]
Eight ten-hour days in the 14 days: 80 hours, each day's 2 hours past 8 overtime; the 64 straight hours left are under 80, so the 14-day threshold moves nothing
scenarios/ten-hour-days-are-daily-overtime.toml
description = "Eight ten-hour days in the 14 days: 80 hours, each day's 2 hours past 8 overtime; the 64 straight hours left are under 80, so the 14-day threshold moves nothing"
punch = [
{ at = "2026-09-28 08:00", kind = "in" }, { at = "2026-09-28 18:00", kind = "out" },
{ at = "2026-09-29 08:00", kind = "in" }, { at = "2026-09-29 18:00", kind = "out" },
{ at = "2026-09-30 08:00", kind = "in" }, { at = "2026-09-30 18:00", kind = "out" },
{ at = "2026-10-01 08:00", kind = "in" }, { at = "2026-10-01 18:00", kind = "out" },
{ at = "2026-10-05 08:00", kind = "in" }, { at = "2026-10-05 18:00", kind = "out" },
{ at = "2026-10-06 08:00", kind = "in" }, { at = "2026-10-06 18:00", kind = "out" },
{ at = "2026-10-07 08:00", kind = "in" }, { at = "2026-10-07 18:00", kind = "out" },
{ at = "2026-10-08 08:00", kind = "in" }, { at = "2026-10-08 18:00", kind = "out" },
]
[policy]
zone = "America/Chicago"
[expect.period]
day = "2026-09-28"
first = "2026-09-28"
last = "2026-10-11"
worked = "80h"
allocations = [
"2026-09-28 08:00-16:00 work 8.00",
"2026-09-28 16:00-18:00 overtime 2.00",
"2026-09-29 08:00-16:00 work 8.00",
"2026-09-29 16:00-18:00 overtime 2.00",
"2026-09-30 08:00-16:00 work 8.00",
"2026-09-30 16:00-18:00 overtime 2.00",
"2026-10-01 08:00-16:00 work 8.00",
"2026-10-01 16:00-18:00 overtime 2.00",
"2026-10-05 08:00-16:00 work 8.00",
"2026-10-05 16:00-18:00 overtime 2.00",
"2026-10-06 08:00-16:00 work 8.00",
"2026-10-06 16:00-18:00 overtime 2.00",
"2026-10-07 08:00-16:00 work 8.00",
"2026-10-07 16:00-18:00 overtime 2.00",
"2026-10-08 08:00-16:00 work 8.00",
"2026-10-08 16:00-18:00 overtime 2.00",
]