Skip to content

Comp time in place of overtime pay

The rule

A public employer gives compensatory time off in place of overtime pay to the people who choose it:

  • Each hour of overtime earns an hour and a half of comp time, and is not paid as overtime.
  • The comp time bank holds at most 240 hours (480 hours for police, fire and emergency staff). Overtime that would take the bank past the cap is paid as overtime.
  • Comp time off is leave that draws on the bank; time taken makes room again.
  • On leaving, what is left in the bank is paid out.

Who uses it

State and local government employers, which the federal Fair Labor Standards Act lets give comp time in place of overtime pay under an agreement or understanding with the employee.

How the recipe does it

Configuration only: a package (package.toml) of three layers, with two-week pay periods from January 5, 2026, and balances kept from then.

  • overtime (everyone): past 40 hours a week is overtime.

  • comp-time (those whose employment attribute comp_time is true, the person’s choice, made from a date): three business rules, each a step of its own.

    [[layer.step]]
    id = "bank"
    uses = "standard/comp_time"
    params = { to = "comp_earned", bank = "comp", earn = "1h30m", per = "1h", cap = "240h" }
    [[layer.step]]
    id = "earn"
    uses = "standard/accrue"
    params = { category = "comp", earn = "1h30m", per = "1h", counts = ["comp_earned"] }
    [[layer.step]]
    id = "leaving"
    uses = "standard/payout_on_leaving"
    params = { category = "comp", pay = "comp_payout" }

    comp_time moves each pay period’s overtime to comp_earned (set up as worked and not paid), as much as the comp bank has room for under the cap at an hour and a half each; the rest stays overtime, paid. The room is the cap less the bank as the period opens, with the hand adjustments and the comp time off taken in the period. accrue earns the bank an hour and a half for each hour of comp_earned. payout_on_leaving pays out what is left of the bank on the person’s last day employed, as time in comp_payout (set up as not worked).

  • safety (those who chose comp time and are safety staff, attributes.safety = true): the cap is 480 hours.

Comp time off is asked for as leave in comp_off, which the comp accrual category uses. The pay out is time in comp_payout, which payroll pays at the person’s regular rate.

What your setup needs

Set up before you adopt the recipe; the recipe’s steps read them by name, and adopting it is refused, with a list of what is missing, until they exist.

  • A balance called comp: an accrual category. The recipe earns into it, takes from it or reads it.

The scenarios show each as it was set up for them.

Parameters

StepParameterMeaning
comp_timetoThe category the banked overtime goes to: worked, not paid.
comp_timebankThe accrual category of the comp time bank.
comp_timecapThe most the bank holds (240 hours; 480 for safety staff).
comp_timeearn, perThe comp time earned for each hour (default an hour and a half).
comp_timecategoriesThe overtime categories banked (default overtime).
accruecategory, earn, per, countsThe bank earned from comp_earned, at the same rate.
payout_on_leavingcategory, payThe bank, and the pay category its pay out is in.

What the scenarios show

  • overtime-banked-as-comp-time: 45 hours: the 5 past 40 are banked, earning 7 hours 30 minutes.
  • without-the-choice-overtime-is-paid: without the attribute, the 5 hours are overtime, paid.
  • past-the-cap-overtime-is-paid: with 237 hours banked, 2 hours of overtime fit; the other 3 are paid, and the bank reaches 240.
  • safety-staff-bank-up-to-480-hours: a firefighter with 470 hours banks all 5.
  • comp-time-used-draws-on-the-bank: a day off takes 8 hours from the bank.
  • time-off-taken-makes-room-under-the-cap: a full bank, and a day off in the period: the period’s overtime fits again.
  • what-is-left-is-paid-out-on-leaving: on the last day employed, the 27 hours 30 minutes in the bank are paid out in comp_payout.

Comp time in place of overtime pay is for public agencies only: a private employer must pay overtime. It needs an agreement made before the work is done (a collective agreement, or a written understanding with the employee). Comp time paid out on leaving is paid at the higher of the person’s final regular rate and their average regular rate over their last three years. An employee who asks to use comp time is allowed to within a reasonable time unless it would unduly disrupt the agency. Some states limit comp time further. Check the rules where you operate.

Get the recipe

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

comp_time/package.toml
name = "comp_time"
version = "1.0.0"
description = "Overtime earned as time off at an hour and a half for each hour, in place of overtime pay, for those who choose it: banked up to 240 hours (480 for safety staff), overtime past the cap paid, and what is left paid out on leaving."
# What the tenant must have set up for the recipe: the steps read these by name.
[needs]
accrual_categories = ["comp"]
# Two-week pay periods from January 5, 2026; balances kept from then.
# Everyone: past 40 hours a week is overtime.
[[layer]]
id = "overtime"
settings = { pay_periods = { every_days = 14, from = "2026-01-05" }, accruals = { since = "2026-01-05" } }
[[layer.step]]
id = "weekly"
uses = "standard/threshold"
params = { over = "40h", to = "overtime", window = "week" }
# Those who chose comp time (the employment attribute comp_time): each pay
# period's overtime goes to comp_earned (worked, not paid) as far as the
# comp bank has room under 240 hours at an hour and a half each; it earns
# the bank an hour and a half for each hour; and on leaving, what is left
# of the bank is paid out in comp_payout.
[[layer]]
id = "comp-time"
applies_to = "attributes.comp_time = true"
[[layer.step]]
id = "bank"
uses = "standard/comp_time"
params = { to = "comp_earned", bank = "comp", earn = "1h30m", per = "1h", cap = "240h" }
[[layer.step]]
id = "earn"
uses = "standard/accrue"
params = { category = "comp", earn = "1h30m", per = "1h", counts = ["comp_earned"] }
[[layer.step]]
id = "leaving"
uses = "standard/payout_on_leaving"
params = { category = "comp", pay = "comp_payout" }
# Police, fire and emergency staff bank up to 480 hours.
[[layer]]
id = "safety"
applies_to = "attributes.comp_time = true and attributes.safety = true"
[[layer.step]]
id = "bank"
change = "params"
params = { cap = "480h" }

Scenarios

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

Comp time off is leave in comp_off, which draws on the bank: 20 hours banked, a day of 8 hours taken leaves 12
scenarios/comp-time-used-draws-on-the-bank.toml
description = "Comp time off is leave in comp_off, which draws on the bank: 20 hours banked, a day of 8 hours taken leaves 12"
[policy]
zone = "America/Chicago"
[[category]]
id = "comp_earned"
paid = false
[[category]]
id = "comp_off"
worked = false
[[category]]
id = "comp_payout"
worked = false
[[accrual_category]]
id = "comp"
uses = ["comp_off"]
[[employment]]
effective = "2025-01-06"
kind = "hired"
attributes = { comp_time = true }
[[accrual_adjustment]]
category = "comp"
workday = "2026-01-05"
amount = "20h"
recorded = "2026-01-05 07:00"
[[leave]]
id = "c1"
category = "comp_off"
days = { "2026-01-12" = "8h" }
recorded = "2026-01-06 09:00"
[[approval]]
subject = "leave:c1:2026-01-12"
stage = "approval"
decision = "approve"
recorded = "2026-01-06 10:00"
[expect.period]
day = "2026-01-05"
allocations = ["2026-01-12 untimed comp_off 8.00"]
balances = { comp = "12h" }
A person who chose comp time works 9 hours a day, Monday to Friday: the 5 hours past 40 go to comp_earned, not paid, and earn the bank 7 hours 30 minutes
scenarios/overtime-banked-as-comp-time.toml
description = "A person who chose comp time works 9 hours a day, Monday to Friday: the 5 hours past 40 go to comp_earned, not paid, and earn the bank 7 hours 30 minutes"
punch = [
{ at = "2026-01-05 08:00", kind = "in" }, { at = "2026-01-05 17:00", kind = "out" },
{ at = "2026-01-06 08:00", kind = "in" }, { at = "2026-01-06 17:00", kind = "out" },
{ at = "2026-01-07 08:00", kind = "in" }, { at = "2026-01-07 17:00", kind = "out" },
{ at = "2026-01-08 08:00", kind = "in" }, { at = "2026-01-08 17:00", kind = "out" },
{ at = "2026-01-09 08:00", kind = "in" }, { at = "2026-01-09 17:00", kind = "out" },
]
[policy]
zone = "America/Chicago"
[[category]]
id = "comp_earned"
paid = false
[[category]]
id = "comp_off"
worked = false
[[category]]
id = "comp_payout"
worked = false
[[accrual_category]]
id = "comp"
uses = ["comp_off"]
[[employment]]
effective = "2025-01-06"
kind = "hired"
attributes = { comp_time = true }
[expect.period]
day = "2026-01-05"
allocations = [
"2026-01-05 08:00-17:00 work 9.00",
"2026-01-06 08:00-17:00 work 9.00",
"2026-01-07 08:00-17:00 work 9.00",
"2026-01-08 08:00-17:00 work 9.00",
"2026-01-09 08:00-12:00 work 4.00",
"2026-01-09 12:00-17:00 comp_earned 5.00",
]
accruals = ["2026-01-05 comp earned 7h 30m"]
balances = { comp = "7h 30m" }
A bank of 237 hours has room for 3 more under the 240-hour cap: 2 hours of overtime at an hour and a half each. Of 5 hours of overtime, the last 2 are banked and the first 3 paid; the bank reaches 240 hours
scenarios/past-the-cap-overtime-is-paid.toml
description = "A bank of 237 hours has room for 3 more under the 240-hour cap: 2 hours of overtime at an hour and a half each. Of 5 hours of overtime, the last 2 are banked and the first 3 paid; the bank reaches 240 hours"
punch = [
{ at = "2026-01-05 08:00", kind = "in" }, { at = "2026-01-05 17:00", kind = "out" },
{ at = "2026-01-06 08:00", kind = "in" }, { at = "2026-01-06 17:00", kind = "out" },
{ at = "2026-01-07 08:00", kind = "in" }, { at = "2026-01-07 17:00", kind = "out" },
{ at = "2026-01-08 08:00", kind = "in" }, { at = "2026-01-08 17:00", kind = "out" },
{ at = "2026-01-09 08:00", kind = "in" }, { at = "2026-01-09 17:00", kind = "out" },
]
[policy]
zone = "America/Chicago"
[[category]]
id = "comp_earned"
paid = false
[[category]]
id = "comp_off"
worked = false
[[category]]
id = "comp_payout"
worked = false
[[accrual_category]]
id = "comp"
uses = ["comp_off"]
[[employment]]
effective = "2025-01-06"
kind = "hired"
attributes = { comp_time = true }
[[accrual_adjustment]]
category = "comp"
workday = "2026-01-05"
amount = "237h"
recorded = "2026-01-05 07:00"
[expect.period]
day = "2026-01-05"
allocations = [
"2026-01-05 08:00-17:00 work 9.00",
"2026-01-06 08:00-17:00 work 9.00",
"2026-01-07 08:00-17:00 work 9.00",
"2026-01-08 08:00-17:00 work 9.00",
"2026-01-09 08:00-12:00 work 4.00",
"2026-01-09 12:00-15:00 overtime 3.00",
"2026-01-09 15:00-17:00 comp_earned 2.00",
]
accruals = ["2026-01-05 comp adjusted 237h", "2026-01-05 comp earned 3h"]
balances = { comp = "240h" }
A firefighter who chose comp time banks up to 480 hours: with 470 hours banked, all 5 hours of overtime fit, and the bank reaches 477 hours 30 minutes
scenarios/safety-staff-bank-up-to-480-hours.toml
description = "A firefighter who chose comp time banks up to 480 hours: with 470 hours banked, all 5 hours of overtime fit, and the bank reaches 477 hours 30 minutes"
punch = [
{ at = "2026-01-05 08:00", kind = "in" }, { at = "2026-01-05 17:00", kind = "out" },
{ at = "2026-01-06 08:00", kind = "in" }, { at = "2026-01-06 17:00", kind = "out" },
{ at = "2026-01-07 08:00", kind = "in" }, { at = "2026-01-07 17:00", kind = "out" },
{ at = "2026-01-08 08:00", kind = "in" }, { at = "2026-01-08 17:00", kind = "out" },
{ at = "2026-01-09 08:00", kind = "in" }, { at = "2026-01-09 17:00", kind = "out" },
]
[policy]
zone = "America/Chicago"
[[category]]
id = "comp_earned"
paid = false
[[category]]
id = "comp_off"
worked = false
[[category]]
id = "comp_payout"
worked = false
[[accrual_category]]
id = "comp"
uses = ["comp_off"]
[[employment]]
effective = "2025-01-06"
kind = "hired"
attributes = { comp_time = true, safety = true }
[[accrual_adjustment]]
category = "comp"
workday = "2026-01-05"
amount = "470h"
recorded = "2026-01-05 07:00"
[expect.period]
day = "2026-01-05"
allocations = [
"2026-01-05 08:00-17:00 work 9.00",
"2026-01-06 08:00-17:00 work 9.00",
"2026-01-07 08:00-17:00 work 9.00",
"2026-01-08 08:00-17:00 work 9.00",
"2026-01-09 08:00-12:00 work 4.00",
"2026-01-09 12:00-17:00 comp_earned 5.00",
]
balances = { comp = "477h 30m" }
A full bank of 240 hours. A day of comp time off in the pay period takes 8 hours from it, so the period's 5 hours of overtime fit under the cap again: they are banked, and the bank ends the period at 239 hours 30 minutes
scenarios/time-off-taken-makes-room-under-the-cap.toml
description = "A full bank of 240 hours. A day of comp time off in the pay period takes 8 hours from it, so the period's 5 hours of overtime fit under the cap again: they are banked, and the bank ends the period at 239 hours 30 minutes"
punch = [
{ at = "2026-01-05 08:00", kind = "in" }, { at = "2026-01-05 17:00", kind = "out" },
{ at = "2026-01-06 08:00", kind = "in" }, { at = "2026-01-06 17:00", kind = "out" },
{ at = "2026-01-07 08:00", kind = "in" }, { at = "2026-01-07 17:00", kind = "out" },
{ at = "2026-01-08 08:00", kind = "in" }, { at = "2026-01-08 17:00", kind = "out" },
{ at = "2026-01-09 08:00", kind = "in" }, { at = "2026-01-09 17:00", kind = "out" },
]
[policy]
zone = "America/Chicago"
[[category]]
id = "comp_earned"
paid = false
[[category]]
id = "comp_off"
worked = false
[[category]]
id = "comp_payout"
worked = false
[[accrual_category]]
id = "comp"
uses = ["comp_off"]
[[employment]]
effective = "2025-01-06"
kind = "hired"
attributes = { comp_time = true }
[[accrual_adjustment]]
category = "comp"
workday = "2026-01-05"
amount = "240h"
recorded = "2026-01-05 07:00"
[[leave]]
id = "c1"
category = "comp_off"
days = { "2026-01-13" = "8h" }
recorded = "2026-01-06 09:00"
[[approval]]
subject = "leave:c1:2026-01-13"
stage = "approval"
decision = "approve"
recorded = "2026-01-06 10:00"
[expect.period]
day = "2026-01-05"
allocations = [
"2026-01-05 08:00-17:00 work 9.00",
"2026-01-06 08:00-17:00 work 9.00",
"2026-01-07 08:00-17:00 work 9.00",
"2026-01-08 08:00-17:00 work 9.00",
"2026-01-09 08:00-12:00 work 4.00",
"2026-01-09 12:00-17:00 comp_earned 5.00",
"2026-01-13 untimed comp_off 8.00",
]
balances = { comp = "239h 30m" }
A person who chose comp time leaves: their last day is Friday, January 16. The 20 hours banked and the 7 hours 30 minutes earned that period are paid out on that day, in comp_payout, and the bank is left at nothing
scenarios/what-is-left-is-paid-out-on-leaving.toml
description = "A person who chose comp time leaves: their last day is Friday, January 16. The 20 hours banked and the 7 hours 30 minutes earned that period are paid out on that day, in comp_payout, and the bank is left at nothing"
punch = [
{ at = "2026-01-05 08:00", kind = "in" }, { at = "2026-01-05 17:00", kind = "out" },
{ at = "2026-01-06 08:00", kind = "in" }, { at = "2026-01-06 17:00", kind = "out" },
{ at = "2026-01-07 08:00", kind = "in" }, { at = "2026-01-07 17:00", kind = "out" },
{ at = "2026-01-08 08:00", kind = "in" }, { at = "2026-01-08 17:00", kind = "out" },
{ at = "2026-01-09 08:00", kind = "in" }, { at = "2026-01-09 17:00", kind = "out" },
]
[policy]
zone = "America/Chicago"
[[category]]
id = "comp_earned"
paid = false
[[category]]
id = "comp_off"
worked = false
[[category]]
id = "comp_payout"
worked = false
[[accrual_category]]
id = "comp"
uses = ["comp_off"]
[[employment]]
effective = "2025-01-06"
kind = "hired"
attributes = { comp_time = true }
[[accrual_adjustment]]
category = "comp"
workday = "2026-01-05"
amount = "20h"
recorded = "2026-01-05 07:00"
[[employment]]
effective = "2026-01-17"
kind = "terminated"
[expect.period]
day = "2026-01-05"
allocations = [
"2026-01-05 08:00-17:00 work 9.00",
"2026-01-06 08:00-17:00 work 9.00",
"2026-01-07 08:00-17:00 work 9.00",
"2026-01-08 08:00-17:00 work 9.00",
"2026-01-09 08:00-12:00 work 4.00",
"2026-01-09 12:00-17:00 comp_earned 5.00",
"2026-01-16 untimed comp_payout 27.50",
]
accruals = ["2026-01-05 comp adjusted 20h", "2026-01-05 comp earned 7h 30m", "2026-01-16 comp paid_out -27h 30m"]
balances = { comp = "0s" }
A person who has not chosen comp time works the same 45 hours: the 5 hours past 40 are overtime, paid; nothing is banked
scenarios/without-the-choice-overtime-is-paid.toml
description = "A person who has not chosen comp time works the same 45 hours: the 5 hours past 40 are overtime, paid; nothing is banked"
punch = [
{ at = "2026-01-05 08:00", kind = "in" }, { at = "2026-01-05 17:00", kind = "out" },
{ at = "2026-01-06 08:00", kind = "in" }, { at = "2026-01-06 17:00", kind = "out" },
{ at = "2026-01-07 08:00", kind = "in" }, { at = "2026-01-07 17:00", kind = "out" },
{ at = "2026-01-08 08:00", kind = "in" }, { at = "2026-01-08 17:00", kind = "out" },
{ at = "2026-01-09 08:00", kind = "in" }, { at = "2026-01-09 17:00", kind = "out" },
]
[policy]
zone = "America/Chicago"
[[category]]
id = "comp_earned"
paid = false
[[category]]
id = "comp_off"
worked = false
[[category]]
id = "comp_payout"
worked = false
[[accrual_category]]
id = "comp"
uses = ["comp_off"]
[[employment]]
effective = "2025-01-06"
kind = "hired"
attributes = { comp_time = false }
[expect.period]
day = "2026-01-05"
allocations = [
"2026-01-05 08:00-17:00 work 9.00",
"2026-01-06 08:00-17:00 work 9.00",
"2026-01-07 08:00-17:00 work 9.00",
"2026-01-08 08:00-17:00 work 9.00",
"2026-01-09 08:00-12:00 work 4.00",
"2026-01-09 12:00-17:00 overtime 5.00",
]
accruals = []