Skip to content

No pyramiding of premiums

The rule

Premiums do not pyramid: an hour paid one premium (daily overtime, holiday work) is not paid another on top, and is not counted again to make other hours overtime. Where two premiums could apply to the same hour, the hour is paid the higher.

  • A 50-hour week of five 10-hour days with daily overtime past 8 is 40 straight and 10 overtime: the weekly threshold counts the 40 straight hours, not the daily overtime again.
  • A holiday worked at double time is paid double time, not double time and overtime; and its hours, already paid more than overtime, are not counted toward the 40.

Who uses it

Employers with daily and weekly overtime (California, Alaska, Colorado, many union contracts), and anyone paying a holiday or weekend premium beside overtime.

How the recipe does it

Configuration only: a package (package.toml) of one layer. Each hour ends in exactly one category, and a category is paid one rate, so no hour is ever paid two premiums. What the policy chooses is which premium an hour gets, by the order of the steps, and which hours count toward a threshold, by its counts.

[[layer]]
id = "overtime"
[[layer.step]]
id = "holiday-worked"
uses = "standard/premium"
params = { holidays = true, category = "holiday_worked" }
[[layer.step]]
id = "daily"
uses = "standard/threshold"
params = { window = "day", over = "8h", to = "overtime", counts = ["work"] }
[[layer.step]]
id = "weekly"
uses = "standard/threshold"
params = { window = "week", over = "40h", to = "overtime", counts = ["work"] }
  • The higher premium first. The holiday premium (double time) runs first and takes the holiday’s hours; the thresholds count straight time only, so they neither take those hours nor count them toward 40.
  • Overtime first. Where overtime pays more than the holiday premium, a layer moves the premium after the thresholds and has it take straight time only (counts = ["work"]): the holiday’s overtime hours stay overtime.
  • Holiday hours counted toward overtime. A premium below one and a half times earns no credit against overtime: a layer has the weekly threshold count holiday_worked too, and the week’s last hours past 40 are overtime besides.

A threshold with no counts counts every worked category but its own: hours worked count toward overtime unless the policy says they are credited, so a policy that says nothing never pays less than the hours worked call for.

Parameters

StepParameterMeaning
premiumholidays, category, countsHoliday work’s category, and which time it takes.
thresholdcountsThe categories counted toward the threshold: ["work"], straight time only.

What the scenarios show

  • daily-and-weekly-overtime-are-not-paid-twice: 50 hours in five days are 40 straight and 10 overtime.
  • a-worked-holiday-is-paid-its-premium-once: Labor Day’s 10 hours are all at the holiday premium; the week’s other 40 are straight time.
  • overtime-first-then-the-holiday-premium: overtime first, Labor Day’s 10 hours are 8 at the holiday premium and 2 of daily overtime.
  • a-company-that-counts-holiday-hours-toward-overtime: the holiday’s 10 hours count toward the 40: 30 straight and 10 overtime besides.

This is a common way companies keep premiums from pyramiding; check the rules where you operate and the contract that applies. Only premiums of at least one and a half times for hours worked on holidays, weekends or past a daily or weekly limit may be credited toward overtime; a smaller premium leaves the overtime owed.

Get the recipe

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

no_pyramiding/package.toml
name = "no_pyramiding"
version = "1.0.0"
description = "No hour is paid two premiums: daily overtime is not counted again toward weekly overtime, and holiday hours paid at the holiday premium are not counted toward either."
# Every hour ends in one category, paid one premium. Time worked on a
# holiday goes to holiday_worked (paid at double time) first; the daily
# and weekly thresholds then count straight time only, so neither the
# holiday's hours nor the day's overtime are counted again.
[[layer]]
id = "overtime"
[[layer.step]]
id = "holiday-worked"
uses = "standard/premium"
params = { holidays = true, category = "holiday_worked" }
[[layer.step]]
id = "daily"
uses = "standard/threshold"
params = { window = "day", over = "8h", to = "overtime", counts = ["work"] }
[[layer.step]]
id = "weekly"
uses = "standard/threshold"
params = { window = "week", over = "40h", to = "overtime", counts = ["work"] }

Scenarios

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

A contract that counts holiday hours toward the 40 (its holiday premium is less than overtime, so the law gives no credit for it): its layer has the weekly threshold count holiday_worked too. The same 50 hours are 10 at the holiday premium, 30 straight and the week's last 10 overtime, each hour still in one category
scenarios/a-company-that-counts-holiday-hours-toward-overtime.toml
description = "A contract that counts holiday hours toward the 40 (its holiday premium is less than overtime, so the law gives no credit for it): its layer has the weekly threshold count holiday_worked too. The same 50 hours are 10 at the holiday premium, 30 straight and the week's last 10 overtime, each hour still in one category"
punch = [
{ at = "2026-09-07 07:00", kind = "in" }, { at = "2026-09-07 17:00", kind = "out" },
{ at = "2026-09-08 08:00", kind = "in" }, { at = "2026-09-08 16:00", kind = "out" },
{ at = "2026-09-09 08:00", kind = "in" }, { at = "2026-09-09 16:00", kind = "out" },
{ at = "2026-09-10 08:00", kind = "in" }, { at = "2026-09-10 16:00", kind = "out" },
{ at = "2026-09-11 08:00", kind = "in" }, { at = "2026-09-11 16:00", kind = "out" },
{ at = "2026-09-12 08:00", kind = "in" }, { at = "2026-09-12 16:00", kind = "out" },
]
[policy]
zone = "America/Chicago"
[[layer]]
id = "holiday-hours-count"
[[layer.step]]
id = "weekly"
change = "params"
params = { counts = ["work", "holiday_worked"] }
[[holiday]]
id = "labor"
name = "Labor Day"
month = 9
weekday = "monday"
n = 1
[expect]
week = "2026-09-07"
allocations = [
"2026-09-07 07:00-17:00 holiday_worked 10.00",
"2026-09-08 08:00-16:00 work 8.00",
"2026-09-09 08:00-16:00 work 8.00",
"2026-09-10 08:00-16:00 work 8.00",
"2026-09-11 08:00-14:00 work 6.00",
"2026-09-11 14:00-16:00 overtime 2.00",
"2026-09-12 08:00-16:00 overtime 8.00",
]
Labor Day's 10 hours worked are all holiday_worked, paid double: none of them is daily overtime too. Tuesday to Saturday's 40 hours are the week's straight time; the holiday's hours, already paid more than overtime, are not counted toward the 40, so nothing is overtime. 50 hours: 10 at the holiday premium, 40 straight
scenarios/a-worked-holiday-is-paid-its-premium-once.toml
description = "Labor Day's 10 hours worked are all holiday_worked, paid double: none of them is daily overtime too. Tuesday to Saturday's 40 hours are the week's straight time; the holiday's hours, already paid more than overtime, are not counted toward the 40, so nothing is overtime. 50 hours: 10 at the holiday premium, 40 straight"
punch = [
{ at = "2026-09-07 07:00", kind = "in" }, { at = "2026-09-07 17:00", kind = "out" },
{ at = "2026-09-08 08:00", kind = "in" }, { at = "2026-09-08 16:00", kind = "out" },
{ at = "2026-09-09 08:00", kind = "in" }, { at = "2026-09-09 16:00", kind = "out" },
{ at = "2026-09-10 08:00", kind = "in" }, { at = "2026-09-10 16:00", kind = "out" },
{ at = "2026-09-11 08:00", kind = "in" }, { at = "2026-09-11 16:00", kind = "out" },
{ at = "2026-09-12 08:00", kind = "in" }, { at = "2026-09-12 16:00", kind = "out" },
]
[policy]
zone = "America/Chicago"
[[holiday]]
id = "labor"
name = "Labor Day"
month = 9
weekday = "monday"
n = 1
[expect]
week = "2026-09-07"
allocations = [
"2026-09-07 07:00-17:00 holiday_worked 10.00",
"2026-09-08 08:00-16:00 work 8.00",
"2026-09-09 08:00-16:00 work 8.00",
"2026-09-10 08:00-16:00 work 8.00",
"2026-09-11 08:00-16:00 work 8.00",
"2026-09-12 08:00-16:00 work 8.00",
]
Five 10-hour days are 50 hours: each day's last 2 are daily overtime, 10 in all. The weekly threshold counts the 40 hours of straight time left, none past 40: the week is 40 and 10, never 40, 10 and 10 more
scenarios/daily-and-weekly-overtime-are-not-paid-twice.toml
description = "Five 10-hour days are 50 hours: each day's last 2 are daily overtime, 10 in all. The weekly threshold counts the 40 hours of straight time left, none past 40: the week is 40 and 10, never 40, 10 and 10 more"
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" },
{ 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 17:00", kind = "out" },
{ at = "2026-10-09 07:00", kind = "in" }, { at = "2026-10-09 17:00", kind = "out" },
]
[policy]
zone = "America/Chicago"
[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-17:00 overtime 2.00",
"2026-10-07 07:00-15:00 work 8.00",
"2026-10-07 15:00-17:00 overtime 2.00",
"2026-10-08 07:00-15:00 work 8.00",
"2026-10-08 15:00-17:00 overtime 2.00",
"2026-10-09 07:00-15:00 work 8.00",
"2026-10-09 15:00-17:00 overtime 2.00",
]
A company whose overtime pays more than its holiday premium puts overtime first: its own layer moves the holiday premium after the thresholds, on straight time only. Labor Day's 10 hours are 8 at the holiday premium and its last 2 daily overtime; each hour is paid the one premium, the higher where both apply
scenarios/overtime-first-then-the-holiday-premium.toml
description = "A company whose overtime pays more than its holiday premium puts overtime first: its own layer moves the holiday premium after the thresholds, on straight time only. Labor Day's 10 hours are 8 at the holiday premium and its last 2 daily overtime; each hour is paid the one premium, the higher where both apply"
punch = [
{ at = "2026-09-07 07:00", kind = "in" }, { at = "2026-09-07 17:00", kind = "out" },
{ at = "2026-09-08 08:00", kind = "in" }, { at = "2026-09-08 16:00", kind = "out" },
]
[policy]
zone = "America/Chicago"
[[layer]]
id = "overtime-first"
[[layer.step]]
id = "holiday-worked"
change = "disable"
[[layer.step]]
id = "holiday-worked-after"
uses = "standard/premium"
params = { holidays = true, category = "holiday_worked", counts = ["work"] }
[[holiday]]
id = "labor"
name = "Labor Day"
month = 9
weekday = "monday"
n = 1
[expect]
week = "2026-09-07"
allocations = [
"2026-09-07 07:00-15:00 holiday_worked 8.00",
"2026-09-07 15:00-17:00 overtime 2.00",
"2026-09-08 08:00-16:00 work 8.00",
]