The year's end, kind by kind
The rule
At the start of each year, each kind of leave the employer gives is settled its own way:
- Vacation: up to 40 hours carry over; the rest is paid out.
- Sick leave: up to 48 hours carry over; the rest is forfeited.
- Personal time: none carries over; it is all paid out.
A balance under its limit carries over whole.
Who uses it
Employers with several kinds of leave, each with its own year-end rule: often to keep vacation balances from growing while paying people for what they could not take, and to cap sick leave carried over as a sick leave law allows.
How the recipe does it
Configuration only: a package (package.toml) of one layer, with monthly
pay periods and balances kept from December 1, 2025. One step for each
kind of leave:
[[layer.step]]id = "vacation"uses = "standard/carryover_payout"params = { category = "vacation", limit = "40h", pay = "vacation_payout" }[[layer.step]]id = "sick"uses = "standard/carryover"params = { category = "sick", limit = "48h" }[[layer.step]]id = "personal"uses = "standard/carryover_payout"params = { category = "personal", limit = "0h", pay = "personal_payout" }carryover_payout pays out the balance above limit as the year starts:
the balance goes down by that much, and the ledger has that much time on
the year’s first day in pay, a pay category set up as not worked, which
payroll pays. carryover forfeits it instead. A kind of leave with
neither step carries over whole. Each takes a year (default the calendar
year; { every = "1y", starts = "07-01" } for a year from July 1). What
the leave earned before the year’s start counts, what it earns from then
does not: where a pay period runs across the year’s start, run them after
the steps that earn the leave, those earning by the day.
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
personal: an accrual category. The recipe earns into it, takes from it or reads it. - A balance called
sick: an accrual category. The recipe earns into it, takes from it or reads it. - A balance called
vacation: 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
| Step | Parameter | Meaning |
|---|---|---|
carryover_payout | category | The accrual category. |
carryover_payout | limit | What carries over (0h: all of it is paid out). |
carryover_payout | pay | The pay category the rest is paid in. |
carryover_payout | year | When the year starts (default January 1). |
carryover | category, limit, year | As above; the rest is forfeited. |
What the scenarios show
each-kind-of-leave-at-the-new-year: 60 hours of vacation, 70 of sick leave and 10 personal hours at the year’s end: 20 hours of vacation and the 10 personal hours paid out, 22 hours of sick leave forfeited.under-the-limits-it-carries-over: balances under their limits carry over whole.vacation-paid-out-at-a-leave-year-from-july: with a vacation year from July 1, the vacation is paid out on July 1.
Legal note
Some states treat earned vacation as wages: it may not be forfeited (“use it or lose it” is not allowed), and what is left is paid out when employment ends. Sick leave laws often require unused sick leave to carry over, up to a limit. Check the rules where you operate.
Get the recipe
The recipe’s package and its scenarios are in the example packages repository: attendance/year_end_by_category. 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 = "year_end_by_category"version = "1.0.0"description = "At the new year, each kind of leave as the policy says: vacation carried over up to 40 hours and the rest paid out, sick leave carried over up to 48 hours and the rest forfeited, personal days paid out whole."
# What the tenant must have set up for the recipe: the steps read these by name.[needs]accrual_categories = ["personal", "sick", "vacation"]
# Monthly pay periods; balances kept from December 1, 2025. At the start of# each calendar year: vacation over 40 hours is paid out (vacation_payout),# sick leave over 48 hours is forfeited, and the whole personal balance is# paid out (personal_payout).[[layer]]id = "year-end"settings = { pay_periods = { month_days = [1] }, accruals = { since = "2025-12-01" } }[[layer.step]]id = "vacation"uses = "standard/carryover_payout"params = { category = "vacation", limit = "40h", pay = "vacation_payout" }[[layer.step]]id = "sick"uses = "standard/carryover"params = { category = "sick", limit = "48h" }[[layer.step]]id = "personal"uses = "standard/carryover_payout"params = { category = "personal", limit = "0h", pay = "personal_payout" }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 year ends with 60 hours of vacation, 70 of sick leave and 10 of personal time. On January 1: 20 hours of vacation are paid out and 40 carried over; 22 hours of sick leave are forfeited and 48 carried over; the 10 personal hours are paid out
description = "The year ends with 60 hours of vacation, 70 of sick leave and 10 of personal time. On January 1: 20 hours of vacation are paid out and 40 carried over; 22 hours of sick leave are forfeited and 48 carried over; the 10 personal hours are paid out"
[policy]zone = "America/New_York"
[[category]]id = "vacation"worked = false
[[category]]id = "sick"worked = false
[[category]]id = "personal"worked = false
[[category]]id = "vacation_payout"worked = false
[[category]]id = "personal_payout"worked = false
[[accrual_category]]id = "vacation"uses = ["vacation"]
[[accrual_category]]id = "sick"uses = ["sick"]
[[accrual_category]]id = "personal"uses = ["personal"]
[[accrual_adjustment]]category = "vacation"workday = "2025-12-01"amount = "60h"recorded = "2025-12-01 09:00"
[[accrual_adjustment]]category = "sick"workday = "2025-12-01"amount = "70h"recorded = "2025-12-01 09:00"
[[accrual_adjustment]]category = "personal"workday = "2025-12-01"amount = "10h"recorded = "2025-12-01 09:00"
[expect.period]day = "2026-01-01"allocations = ["2026-01-01 untimed personal_payout 10.00", "2026-01-01 untimed vacation_payout 20.00"]accruals = ["2026-01-01 vacation paid_out -20h", "2026-01-01 sick forfeited -22h", "2026-01-01 personal paid_out -10h"]balances = { vacation = "40h", sick = "48h", personal = "0s" }30 hours of vacation and 20 of sick leave at the year's end, under their limits, carry over whole; nothing is paid out or forfeited
description = "30 hours of vacation and 20 of sick leave at the year's end, under their limits, carry over whole; nothing is paid out or forfeited"
[policy]zone = "America/New_York"
[[category]]id = "vacation"worked = false
[[category]]id = "sick"worked = false
[[category]]id = "personal"worked = false
[[category]]id = "vacation_payout"worked = false
[[category]]id = "personal_payout"worked = false
[[accrual_category]]id = "vacation"uses = ["vacation"]
[[accrual_category]]id = "sick"uses = ["sick"]
[[accrual_category]]id = "personal"uses = ["personal"]
[[accrual_adjustment]]category = "vacation"workday = "2025-12-01"amount = "30h"recorded = "2025-12-01 09:00"
[[accrual_adjustment]]category = "sick"workday = "2025-12-01"amount = "20h"recorded = "2025-12-01 09:00"
[expect.period]day = "2026-01-01"allocations = []accruals = []balances = { vacation = "30h", sick = "20h" }An employer whose vacation year runs from July 1: on January 1 the 60 hours of vacation stay; on July 1 the 20 over 40 are paid out
description = "An employer whose vacation year runs from July 1: on January 1 the 60 hours of vacation stay; on July 1 the 20 over 40 are paid out"
[policy]zone = "America/New_York"
[[category]]id = "vacation"worked = false
[[category]]id = "sick"worked = false
[[category]]id = "personal"worked = false
[[category]]id = "vacation_payout"worked = false
[[category]]id = "personal_payout"worked = false
[[accrual_category]]id = "vacation"uses = ["vacation"]
[[accrual_category]]id = "sick"uses = ["sick"]
[[accrual_category]]id = "personal"uses = ["personal"]
[[accrual_adjustment]]category = "vacation"workday = "2025-12-01"amount = "60h"recorded = "2025-12-01 09:00"
# The vacation year from July 1.[[layer]]id = "july"[[layer.step]]id = "vacation"change = "params"params = { year = { every = "1y", starts = "07-01" } }
[expect.period]day = "2026-07-01"allocations = ["2026-07-01 untimed vacation_payout 20.00"]accruals = ["2026-07-01 vacation paid_out -20h"]balances = { vacation = "40h" }