A waiting period before leave is used
The rule
A new employee earns paid sick leave from their first day, at an hour for every 30 hours worked, but may not use it until the 90 days after their hire have passed. A sick leave request with a day in those 90 days is refused, whatever the balance. The balance goes on growing while they wait, and is theirs to use from the 91st day.
Who uses it
Employers under a paid sick leave law that allows a waiting period before new employees use their leave (many allow 90 days), and employers that set one by policy for vacation or paid time off.
How the recipe does it
Configuration only: a package (package.toml) of one layer, with monthly
pay periods and balances kept from January 1, 2026. Three business rules,
each a step of its own:
[[layer.step]]id = "earn"uses = "standard/accrue"params = { category = "sick", earn = "1h", per = "30h" }[[layer.step]]id = "waiting"uses = "standard/leave_waiting_period"params = { categories = ["sick"], wait = { next = "90d" } }[[layer.step]]id = "balance"uses = "standard/leave_balance"params = { balance = { sick = "sick" } }accrue earns sick leave from hire, as it does for anyone employed.
leave_waiting_period refuses a sick leave request with a day in the
period wait from the person’s latest hire: { next = "90d" } is the 90
days from it, { next = "6mo" } six months. leave_balance holds a request
to the balance once the wait is over.
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
sick: 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 |
|---|---|---|
leave_waiting_period | categories | The leave categories held to the wait. |
leave_waiting_period | wait | The period from hire in which they may not be used (default { next = "90d" }). |
What the scenarios show
leave-in-the-first-90-days-is-refused: hired January 5, a sick day on March 16 is refused though 8 hours are in the balance, and the balance reaches 12 hours by the end of March.after-90-days-the-balance-is-used: a sick day on April 6 draws on the 12 hours.a-wait-of-six-months: with a six-month wait, the April 6 day is refused.
Legal note
Paid sick leave laws differ on whether a waiting period is allowed, how long it may be, and whether it restarts for a rehired employee. Check the rules where you operate.
Get the recipe
The recipe’s package and its scenarios are in the example packages repository: attendance/accrual_waiting_period. 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 = "accrual_waiting_period"version = "1.0.0"description = "Sick leave earned from the first day of work, at an hour for every 30 hours worked, but not used until the 90 days after hire have passed."
# What the tenant must have set up for the recipe: the steps read these by name.[needs]accrual_categories = ["sick"]
# Monthly pay periods; balances kept from January 1, 2026. Sick leave is# earned from hire, an hour for every 30 hours worked; a sick leave request# with a day in the 90 days from hire is refused, and none may take the# balance below nothing.[[layer]]id = "sick-leave"settings = { pay_periods = { month_days = [1] }, accruals = { since = "2026-01-01" } }[[layer.step]]id = "earn"uses = "standard/accrue"params = { category = "sick", earn = "1h", per = "30h" }[[layer.step]]id = "waiting"uses = "standard/leave_waiting_period"params = { categories = ["sick"], wait = { next = "90d" } }[[layer.step]]id = "balance"uses = "standard/leave_balance"params = { balance = { sick = "sick" } }Scenarios
Each scenario gives a person’s punches and setup and the timecard they must produce, worked out with this package adopted (the format).
An employer whose wait is six months from hire: the same sick day on April 6 is within it, to July 4: refused
description = "An employer whose wait is six months from hire: the same sick day on April 6 is within it, to July 4: refused"
[policy]zone = "America/Los_Angeles"
[[category]]id = "sick"worked = false
[[accrual_category]]id = "sick"uses = ["sick"]
[[measure]]id = "hours"kind = "duration"
[[employment]]effective = "2026-01-05"kind = "hired"
[[labor]]workday = "2026-01-30"measure = "hours"quantity = "120h"category = "work"
[[labor]]workday = "2026-02-27"measure = "hours"quantity = "120h"category = "work"
[[labor]]workday = "2026-03-27"measure = "hours"quantity = "120h"category = "work"
# A six-month wait.[[layer]]id = "six-months"[[layer.step]]id = "waiting"change = "params"params = { wait = { next = "6mo" } }
[[leave]]id = "s1"category = "sick"days = { "2026-04-06" = "4h" }recorded = "2026-04-06 07:00"
[expect.period]day = "2026-04-06"leave = ["s1 refused: 2026-04-06 is in the waiting period from hire, to 2026-07-04"]Hired January 5, 2026: a sick day on April 6, after the 90 days, draws on the 12 hours earned while waiting
description = "Hired January 5, 2026: a sick day on April 6, after the 90 days, draws on the 12 hours earned while waiting"
[policy]zone = "America/Los_Angeles"
[[category]]id = "sick"worked = false
[[accrual_category]]id = "sick"uses = ["sick"]
[[measure]]id = "hours"kind = "duration"
[[employment]]effective = "2026-01-05"kind = "hired"
[[labor]]workday = "2026-01-30"measure = "hours"quantity = "120h"category = "work"
[[labor]]workday = "2026-02-27"measure = "hours"quantity = "120h"category = "work"
[[labor]]workday = "2026-03-27"measure = "hours"quantity = "120h"category = "work"
[[leave]]id = "s1"category = "sick"days = { "2026-04-06" = "4h" }recorded = "2026-04-06 07:00"
[[approval]]subject = "leave:s1:2026-04-06"stage = "approval"decision = "approve"recorded = "2026-04-06 08:00"
[expect.period]day = "2026-04-06"leave = ["s1 approved"]balances = { sick = "8h" }Hired January 5, 2026, the person earns 4 hours of sick leave each month from 120 hours worked. A sick day on March 16 is within the 90 days from hire, to April 4: refused, though 8 hours are in the balance. The balance goes on growing: 12 hours by the end of March
description = "Hired January 5, 2026, the person earns 4 hours of sick leave each month from 120 hours worked. A sick day on March 16 is within the 90 days from hire, to April 4: refused, though 8 hours are in the balance. The balance goes on growing: 12 hours by the end of March"
[policy]zone = "America/Los_Angeles"
[[category]]id = "sick"worked = false
[[accrual_category]]id = "sick"uses = ["sick"]
[[measure]]id = "hours"kind = "duration"
[[employment]]effective = "2026-01-05"kind = "hired"
[[labor]]workday = "2026-01-30"measure = "hours"quantity = "120h"category = "work"
[[labor]]workday = "2026-02-27"measure = "hours"quantity = "120h"category = "work"
[[labor]]workday = "2026-03-27"measure = "hours"quantity = "120h"category = "work"
[[leave]]id = "s1"category = "sick"days = { "2026-03-16" = "4h" }recorded = "2026-03-16 07:00"
[expect.period]day = "2026-03-16"leave = ["s1 refused: 2026-03-16 is in the waiting period from hire, to 2026-04-04"]accruals = ["2026-03-01 sick earned 4h"]balances = { sick = "12h" }