Paid leave and holidays do not count toward overtime
The rule
Overtime is owed on hours worked. A paid vacation day, sick day or holiday is paid, and shows in the week’s hours, but it was not worked, so it does not count toward the 40 hours that start overtime. A week of one vacation day and 40 hours worked pays 48 hours, all at the regular rate.
Some companies, by contract or to be generous, count paid time off (or holidays) toward overtime anyway. That is a choice of the policy too.
Who uses it
Nearly every employer paying weekly overtime: it is how the federal rule is usually applied. The alternative is common in union contracts and in companies that do not want taking a day off to cost anyone overtime.
How the recipe does it
No Lua of its own. Each pay category is set up as worked or not:
[[category]]id = "vacation"worked = false # paid (the default), not workedLeave requests, holiday pay (standard/holiday_pay) and any time a step
adds with ctx:add_hours go to such categories. The package
(package.toml) is one layer: holiday pay of 8 hours, and a weekly
standard threshold, which counts every worked category by default, so
it does not count them:
[[layer]]id = "overtime"[[layer.step]]id = "holiday"uses = "standard/holiday_pay"params = { time = "8h", category = "holiday" }[[layer.step]]id = "weekly"uses = "standard/threshold"params = { over = "40h", to = "overtime", window = "week" }A company that counts them names the categories the threshold counts, in a layer of its own:
[[layer]]id = "counts-vacation"[[layer.step]]id = "weekly"change = "params"params = { counts = ["work", "vacation"] }Leave and holiday lines are untimed (they happen at no time of day), so they are counted but never moved: the overtime is always worked time.
Parameters
| Parameter | Meaning |
|---|---|
counts | The categories the threshold counts. Default: every worked category. |
[[category]] worked | Whether a category is time worked. Paid leave and holidays: false. |
What the scenarios show
paid-leave-is-not-worked: a vacation day and 40 hours worked, no overtime.a-holiday-is-not-worked: Thanksgiving’s holiday pay and 41 hours worked: one hour of overtime, not nine.a-company-that-counts-leave: withcounts = ["work", "vacation"], the same week has 8 hours of overtime, all of it worked time.
Legal note
This is a common way companies implement overtime around paid leave and holidays; check the rules where you operate and any agreement that counts paid time off toward overtime.
Get the recipe
The recipe’s package and its scenarios are in the example packages repository: attendance/leave_not_counted_toward_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:
name = "leave_not_counted_toward_overtime"version = "1.0.0"description = "Overtime counts hours worked; paid vacation, sick time and holiday pay are paid but not worked, so they do not push the week past 40. Or, for a company that chooses to, they do."
# A holiday pays 8 hours, and time past 40 hours a week is overtime. The# threshold counts every worked category, and paid leave and holiday pay# are set up by the tenant as not worked, so they never count toward it.[[layer]]id = "overtime"[[layer.step]]id = "holiday"uses = "standard/holiday_pay"params = { time = "8h", category = "holiday" }[[layer.step]]id = "weekly"uses = "standard/threshold"params = { over = "40h", to = "overtime", window = "week" }Scenarios
Each scenario gives a person’s punches and setup and the timecard they must produce, worked out with this package adopted (the format).
The alternative: a company that counts paid vacation toward overtime names the categories it counts. Monday's 8 vacation hours and the 40 worked make 48 counted, so Saturday's 8 hours, the latest worked, are overtime. Vacation itself is never moved: it is untimed
description = "The alternative: a company that counts paid vacation toward overtime names the categories it counts. Monday's 8 vacation hours and the 40 worked make 48 counted, so Saturday's 8 hours, the latest worked, are overtime. Vacation itself is never moved: it is untimed"
punch = [ { 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" }, { at = "2026-10-10 08:00", kind = "in" }, { at = "2026-10-10 16:00", kind = "out" },]
[policy]zone = "America/Chicago"
# A company whose own rule counts vacation toward overtime.[[layer]]id = "counts-vacation"[[layer.step]]id = "weekly"change = "params"params = { counts = ["work", "vacation"] }
[[category]]id = "vacation"worked = false
[[leave]]category = "vacation"days = { "2026-10-05" = "8h" }recorded = "2026-09-28 09:00"
[[approval]]subject = "leave:lv1:2026-10-05"stage = "approval"decision = "approve"recorded = "2026-09-28 09:00"
[expect]week = "2026-10-05"worked = "40h"paid = "48.00"allocations = [ "2026-10-05 untimed vacation 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 work 8.00", "2026-10-10 08:00-16:00 overtime 8.00",]Thanksgiving pays 8 hours of holiday; the other four weekdays and Saturday are worked, 41 hours. Holiday pay is in the hours (49) but not in the time the weekly threshold counts: only the one worked hour past 40, Saturday's last, is overtime, not nine
description = "Thanksgiving pays 8 hours of holiday; the other four weekdays and Saturday are worked, 41 hours. Holiday pay is in the hours (49) but not in the time the weekly threshold counts: only the one worked hour past 40, Saturday's last, is overtime, not nine"
punch = [ { at = "2026-11-23 08:00", kind = "in" }, { at = "2026-11-23 16:00", kind = "out" }, { at = "2026-11-24 08:00", kind = "in" }, { at = "2026-11-24 16:00", kind = "out" }, { at = "2026-11-25 08:00", kind = "in" }, { at = "2026-11-25 16:00", kind = "out" }, { at = "2026-11-27 08:00", kind = "in" }, { at = "2026-11-27 16:00", kind = "out" }, { at = "2026-11-28 08:00", kind = "in" }, { at = "2026-11-28 17:00", kind = "out" },]
[policy]zone = "America/Chicago"
[[category]]id = "holiday"worked = false
[[holiday]]id = "thanks"name = "Thanksgiving"month = 11weekday = "thursday"n = 4
[expect]week = "2026-11-23"worked = "41h"paid = "49.00"allocations = [ "2026-11-23 08:00-16:00 work 8.00", "2026-11-24 08:00-16:00 work 8.00", "2026-11-25 08:00-16:00 work 8.00", "2026-11-26 untimed holiday 8.00", "2026-11-27 08:00-16:00 work 8.00", "2026-11-28 08:00-16:00 work 8.00", "2026-11-28 16:00-17:00 overtime 1.00",]Monday is a paid vacation day (8 hours), then 40 hours are worked Tuesday to Saturday. The week pays 48 hours, but only 40 were worked, so none is overtime
description = "Monday is a paid vacation day (8 hours), then 40 hours are worked Tuesday to Saturday. The week pays 48 hours, but only 40 were worked, so none is overtime"
punch = [ { 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" }, { at = "2026-10-10 08:00", kind = "in" }, { at = "2026-10-10 16:00", kind = "out" },]
[policy]zone = "America/Chicago"
# Paid, and not worked.[[category]]id = "vacation"worked = false
[[leave]]category = "vacation"days = { "2026-10-05" = "8h" }recorded = "2026-09-28 09:00"
[[approval]]subject = "leave:lv1:2026-10-05"stage = "approval"decision = "approve"recorded = "2026-09-28 09:00"
[expect]week = "2026-10-05"worked = "40h"paid = "48.00"allocations = [ "2026-10-05 untimed vacation 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 work 8.00", "2026-10-10 08:00-16:00 work 8.00",]