Skip to content

Holiday pay only when scheduled that day

The rule

A paid holiday pays the hours the person was scheduled to work that day. Someone not scheduled that day (part-time staff, or a rotation whose day off it is) is not paid for it.

Who uses it

Employers with part-time staff, rotating schedules or compressed weeks (four tens, weekend crews), where a flat 8 hours for everyone would pay some people for days they would never have worked and short-change those on longer shifts.

How the recipe does it

Configuration only: a package (package.toml) of one layer running the standard holiday_pay step. The category is the tenant’s own setup.

[[layer]]
id = "holiday-pay"
[[layer.step]]
id = "holiday"
uses = "standard/holiday_pay"
params = { time = "scheduled", scheduled_only = true, category = "holiday" }
[[category]]
id = "holiday"
worked = false

holiday_pay runs on each workday. On a holiday it adds an untimed line of the day’s time in category; time = "scheduled" makes that the time of the day’s shifts, and scheduled_only = true adds nothing on a day with no shift. The category is set up as not worked, so holiday pay never counts toward overtime.

Parameters

ParameterMeaning
time"scheduled" (the day’s shifts’ time) or a fixed time, "8h".
scheduled_onlytrue: only on a day with a shift.
categoryWhere the hours go: a category set up as not worked.
holidaysThe holiday ids it pays (default: all).
contextThe line’s labor context (default: the day’s first shift’s values).

What the scenarios show

  • scheduled-that-day-is-paid: a 07:00 to 15:30 schedule is paid 8.5 hours for Thanksgiving.
  • not-scheduled-that-day-is-not-paid: a Friday-to-Monday rotation is not paid for Thanksgiving, a Thursday, but is paid 10 hours for Christmas, a Friday.

This is a common way companies implement holiday pay for varied schedules; check the rules where you operate and your own agreements, which decide who is paid for holidays and how much.

Get the recipe

The recipe’s package and its scenarios are in the example packages repository: attendance/holiday_pay_if_scheduled. 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_pay_if_scheduled/package.toml
name = "holiday_pay_if_scheduled"
version = "1.0.0"
description = "A holiday pays the day's scheduled hours to people scheduled to work it, and nothing to people whose day off it falls on."
# On a holiday, a person scheduled that day is paid the day's scheduled
# time as holiday, which the tenant sets up as not worked; a person not
# scheduled is paid nothing.
[[layer]]
id = "holiday-pay"
[[layer.step]]
id = "holiday"
uses = "standard/holiday_pay"
params = { time = "scheduled", scheduled_only = true, category = "holiday" }

Scenarios

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

Scheduled only Friday to Monday: Thanksgiving, a Thursday, is not one of the person's days, so it pays nothing. The same person is paid for Christmas, a Friday they are scheduled
scenarios/not-scheduled-that-day-is-not-paid.toml
description = "Scheduled only Friday to Monday: Thanksgiving, a Thursday, is not one of the person's days, so it pays nothing. The same person is paid for Christmas, a Friday they are scheduled"
[policy]
zone = "America/Chicago"
[[category]]
id = "holiday"
worked = false
[[holiday]]
id = "thanks"
name = "Thanksgiving"
month = 11
weekday = "thursday"
n = 4
[[holiday]]
id = "christmas"
name = "Christmas Day"
month = 12
day = 25
[[shift_definition]]
id = "long-weekend"
start = "06:00"
end = "16:00"
days = ["friday", "saturday", "sunday", "monday"]
[expect]
week = "2026-11-23"
allocations = []
[expect.period]
day = "2026-12-25"
allocations = ["2026-12-25 untimed holiday 10.00"]
Scheduled Monday to Friday, 07:00 to 15:30: Thanksgiving pays the day's scheduled 8.5 hours as holiday, a category not worked
scenarios/scheduled-that-day-is-paid.toml
description = "Scheduled Monday to Friday, 07:00 to 15:30: Thanksgiving pays the day's scheduled 8.5 hours as holiday, a category not worked"
punch = [
{ at = "2026-11-23 07:00", kind = "in" }, { at = "2026-11-23 15:30", kind = "out" },
]
[policy]
zone = "America/Chicago"
[[category]]
id = "holiday"
worked = false
[[holiday]]
id = "thanks"
name = "Thanksgiving"
month = 11
weekday = "thursday"
n = 4
[[shift_definition]]
id = "days"
start = "07:00"
end = "15:30"
days = ["monday", "tuesday", "wednesday", "thursday", "friday"]
[expect]
week = "2026-11-23"
worked = "8h 30m"
paid = "17.00"
allocations = ["2026-11-23 07:00-15:30 work 8.50", "2026-11-26 untimed holiday 8.50"]