Skip to content

A premium for hours worked on a holiday

The rule

Hours worked on a paid holiday are paid at a premium (time and a half, or double time), on top of the holiday pay everyone gets for the day. A shift counts as worked on the holiday when it starts on the holiday’s workday.

Who uses it

Hospitals, care homes, utilities, retail and manufacturing: anyone who keeps running on holidays and pays those who work them more, by contract or company policy.

How the recipe does it

Configuration only: a package (package.toml) of one layer running the standard premium step on holidays, after the standard holiday pay.

[[layer]]
id = "holidays"
[[layer.step]]
id = "holiday-pay"
uses = "standard/holiday_pay"
params = { time = "8h", category = "holiday" }
[[layer.step]]
id = "worked-premium"
uses = "standard/premium"
params = { holidays = true, category = "holiday_worked" }
  • On a workday that observes a holiday, all the worked time moves to holiday_worked, a worked category, so it still counts toward weekly overtime unless the policy says otherwise.
  • The holiday’s own pay (holiday_pay) is hours in a category set up as not worked.

A shift belongs to the workday it starts in. To pay only the hours that fall on the holiday’s date, a layer adds standard/attribute with mode = "split" before the premium: an overnight shift is then cut at midnight and each piece is its own day’s.

Parameters

ParameterMeaning
categoryWhere the holiday’s worked time goes: "holiday_worked".
holidaystrue for every holiday, or the holiday ids that pay the premium.
countsThe categories moved (default: every worked one).

What the scenarios show

  • worked-on-thanksgiving: four hours worked on Thanksgiving are holiday_worked, and the 8 hours of holiday pay are paid besides.
  • night-shifts-around-the-holiday: an employer paying the premium and no holiday pay (its layer turns holiday-pay off): a night shift starting the evening before is not moved; one starting on the holiday is, all of it.
  • split-at-midnight-pays-the-holidays-hours: the same employer, with a layer that splits overnight shifts at midnight: only the six hours on the holiday are holiday_worked.

This is a common way companies implement holiday premiums; check the rules where you operate. Premiums for holiday work are mostly a matter of contract and company policy, though some places require them.

Get the recipe

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

holiday_worked_premium/package.toml
name = "holiday_worked_premium"
version = "1.0.0"
description = "Time worked on a holiday goes to its own category, paid at a premium, beside the holiday's own pay."
# On a holiday, 8 hours of holiday pay (which the tenant sets up as not
# worked), and the time worked that day moves to holiday_worked, paid at
# the premium.
[[layer]]
id = "holidays"
[[layer.step]]
id = "holiday-pay"
uses = "standard/holiday_pay"
params = { time = "8h", category = "holiday" }
[[layer.step]]
id = "worked-premium"
uses = "standard/premium"
params = { holidays = true, category = "holiday_worked" }

Scenarios

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

Night shifts belong to the workday they start in: Wednesday 22:00 to Thursday 06:00 runs into Thanksgiving but is Wednesday's, so no premium; Thursday 22:00 to Friday 06:00 starts on the holiday, so all of it is holiday_worked
scenarios/night-shifts-around-the-holiday.toml
description = "Night shifts belong to the workday they start in: Wednesday 22:00 to Thursday 06:00 runs into Thanksgiving but is Wednesday's, so no premium; Thursday 22:00 to Friday 06:00 starts on the holiday, so all of it is holiday_worked"
punch = [
{ at = "2026-11-25 22:00", kind = "in" }, { at = "2026-11-26 06:00", kind = "out" },
{ at = "2026-11-26 22:00", kind = "in" }, { at = "2026-11-27 06:00", kind = "out" },
]
[policy]
zone = "America/Chicago"
# An employer that pays the premium only, and no holiday pay.
[[layer]]
id = "premium-only"
[[layer.step]]
id = "holiday-pay"
change = "disable"
[[holiday]]
id = "thanks"
name = "Thanksgiving"
month = 11
weekday = "thursday"
n = 4
[expect]
week = "2026-11-23"
days = { "2026-11-25" = "8h", "2026-11-26" = "8h" }
allocations = [
"2026-11-25 22:00-2026-11-26 06:00 work 8.00",
"2026-11-26 22:00-2026-11-27 06:00 holiday_worked 8.00",
]
stamps = ["2026-11-26 22:00-2026-11-27 06:00 holiday_worked: worked-premium [[email protected]/holidays rev 1]: moved 8h from work to holiday_worked: worked on Thanksgiving"]
With overnight shifts split at midnight, Wednesday 22:00 to Thursday 06:00 is two hours of Wednesday's ordinary work and six of Thanksgiving's, paid as holiday_worked
scenarios/split-at-midnight-pays-the-holidays-hours.toml
description = "With overnight shifts split at midnight, Wednesday 22:00 to Thursday 06:00 is two hours of Wednesday's ordinary work and six of Thanksgiving's, paid as holiday_worked"
punch = [
{ at = "2026-11-25 22:00", kind = "in" }, { at = "2026-11-26 06:00", kind = "out" },
]
[policy]
zone = "America/Chicago"
# An employer that pays the premium only, and no holiday pay, for the
# hours on the holiday's date: overnight shifts are cut at midnight.
[[layer]]
id = "premium-by-the-date"
[[layer.step]]
id = "holiday-pay"
change = "disable"
[[layer.step]]
id = "split"
uses = "standard/attribute"
params = { mode = "split" }
before = "worked-premium"
[[holiday]]
id = "thanks"
name = "Thanksgiving"
month = 11
weekday = "thursday"
n = 4
[expect]
week = "2026-11-23"
days = { "2026-11-25" = "2h", "2026-11-26" = "6h" }
allocations = [
"2026-11-25 22:00-2026-11-26 00:00 work 2.00",
"2026-11-26 00:00-06:00 holiday_worked 6.00",
]
Four hours worked on Thanksgiving go to holiday_worked, and the day's holiday pay (8 hours, not worked) is paid besides. Wednesday and Friday are ordinary days
scenarios/worked-on-thanksgiving.toml
description = "Four hours worked on Thanksgiving go to holiday_worked, and the day's holiday pay (8 hours, not worked) is paid besides. Wednesday and Friday are ordinary days"
punch = [
{ at = "2026-11-25 08:00", kind = "in" }, { at = "2026-11-25 16:00", kind = "out" },
{ at = "2026-11-26 08:00", kind = "in" }, { at = "2026-11-26 12:00", kind = "out" },
{ at = "2026-11-27 08:00", kind = "in" }, { at = "2026-11-27 16:00", kind = "out" },
]
[policy]
zone = "America/Chicago"
[[category]]
id = "holiday"
worked = false
[[holiday]]
id = "thanks"
name = "Thanksgiving"
month = 11
weekday = "thursday"
n = 4
[expect]
week = "2026-11-23"
worked = "20h"
paid = "28.00"
allocations = [
"2026-11-25 08:00-16:00 work 8.00",
"2026-11-26 untimed holiday 8.00",
"2026-11-26 08:00-12:00 holiday_worked 4.00",
"2026-11-27 08:00-16:00 work 8.00",
]