Family and medical leave
The rule
An employer covered by a family and medical leave law gives each eligible person 12 weeks of protected leave in a 12-month period:
- The entitlement. 12 weeks of the person’s usual week. Leave taken a few hours at a time (intermittent leave) or as shorter days (a reduced schedule) counts by the hour: for someone whose usual week is 40 hours, 12 weeks are 480 hours. A request past them is refused, or flagged for the approver to decide.
- The 12-month period, as the employer chooses it: the calendar year, a fixed leave year (from July 1, say), 12 months from the first day of leave, or the rolling 12 months up to each day of leave. With the rolling period, every day of leave is checked against the 12 months before it.
- Eligibility. 12 months of service, and 1,250 hours worked in the 12 months before the leave starts.
- Paid time off alongside. The employer has paid time off used with the leave: unpaid family leave is refused while the paid time off balance has time left, and family leave paid from that balance is never refused for the balance.
Who uses it
Employers covered by the federal Family and Medical Leave Act (50 or more employees) or a state family leave law, and any employer that offers the same protection by policy.
How the recipe does it
Configuration only: a package (package.toml) of one layer, with monthly
pay periods and balances kept from January 1, 2025. Family leave is asked
for in two pay categories: fmla (unpaid) and fmla_pto (paid, drawing
on the pto balance). Each business rule is a step of its own:
[[layer.step]]id = "hours"uses = "standard/accrue"params = { category = "hours_worked", earn = "1h", per = "1h", window = "day" }[[layer.step]]id = "eligible"uses = "standard/leave_eligibility"params = { categories = ["fmla", "fmla_pto"], worked = "hours_worked" }[[layer.step]]id = "entitlement"uses = "standard/leave_entitlement"params = { categories = ["fmla", "fmla_pto"], week_attribute = "usual_week" }[[layer.step]]id = "paid-first"uses = "standard/leave_balance_first"params = { balance = { fmla = "pto" } }[[layer.step]]id = "balance"uses = "standard/leave_balance"params = { balance = { pto = "pto" } }accruekeeps the hours worked: every hour worked earns an hour of the accrual categoryhours_workedon the day it is worked. No pay category uses it, so it only grows.leave_eligibilityrefuses a family leave request from someone with less than 12 months of service before its first day (counted from their first hire, so earlier employment counts), or with less than 1,250 hours earned inhours_workedin the 12 months before it. Hours worked in the pay period the leave starts in are not yet counted.leave_entitlementrefuses a request that would take the family leave in the period past 12 weeks of the person’s usual week. The usual week is the employment attributeusual_week("40h","24h"): the hours the person is scheduled in a week, or, where their schedule varies, the weekly average of the hours scheduled over the 12 months before the leave. A person without one is held to the step’sweek, 40 hours. What counts: this request, and every family leave request asked for before it that stands (not rejected and not refused). With the rolling period, a request is also checked against each later day of leave its time now falls within 12 months of: a request asked for late, for days before others already asked for, cannot push them over.leave_balance_firstrefuses unpaid family leave while theptobalance has time left: the person asks for paid family leave (fmla_pto) until it is used.leave_balanceholds plainptoto its balance. It does not listfmla_pto, so paid family leave is never refused for the balance.
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
hours_worked: an accrual category. The recipe earns into it, takes from it or reads it. - A balance called
pto: 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_entitlement | categories | The pay categories of protected leave, unpaid and paid. |
leave_entitlement | weeks | The weeks of the entitlement (default 12; 26 for military caregiver leave). |
leave_entitlement | week_attribute | The employment attribute holding the person’s usual week. |
leave_entitlement | week | The usual week of someone without one (default 40h). |
leave_entitlement | within | The period: the calendar year (the default), { every = "1y", starts = "07-01" } for a leave year, { next = "12mo" } from the first use, { last = "12mo" } rolling. |
leave_entitlement | flag | Raise leave_over_entitlement for the approver instead of refusing (default false). |
leave_eligibility | categories | As above. |
leave_eligibility | worked | The accrual category of hours worked. |
leave_eligibility | service | The service needed before the leave (default 12mo). |
leave_eligibility | service_from | first_hired (default: earlier employment counts) or hired (the current employment only). |
leave_eligibility | hours | The hours worked needed (default 1250h). |
leave_eligibility | within | When they are worked (default { last = "12mo" }: the 12 months before the leave). |
leave_eligibility | flag | Raise leave_not_eligible instead of refusing (default false). |
leave_balance_first | balance | Each unpaid leave category, and the balance used before it: { fmla = "pto" }. |
leave_balance_first | flag | Raise leave_balance_unused instead of refusing (default false). |
What the scenarios show
Each scenario about the entitlement turns eligibility off, and the person’s usual week is one 8-hour day: 12 weeks are 96 hours.
the-calendar-year-allows-twelve-weeks: 80 hours in February and March; three more days in April would make 104: refused.a-new-calendar-year-starts-again: 80 hours at the end of 2025 leave January 2026’s days to stand.a-leave-year-from-july: with a leave year from July 1, three days in July stand after 80 hours in May.twelve-months-from-the-first-use: the period starts on the first day of leave; a request at its end past 96 hours is refused, and the first use after it starts the next period.the-rolling-twelve-months-before-each-use: 104 hours in the 12 months up to a day of leave: refused.a-use-more-than-twelve-months-back-is-not-counted: days more than 12 months back fall out of the count.an-earlier-use-asked-for-later-counts-against-the-uses-after-it: a request asked for after others, for days before theirs, would take the 12 months up to their days past 96 hours: refused.past-the-entitlement-flagged-for-the-approver: withflag, raised instead of refused.without-a-usual-week-the-policy-week: nousual_week: 40 hours a week, 480 hours; 100 hours of half and whole days stand.protected-leave-is-never-refused-for-the-pto-balance: with 8 hours of pto, 16 hours of paid family leave stand; a plain pto day is refused.unpaid-leave-waits-until-pto-is-used: unpaid family leave is refused while 16 hours of pto are left, and stands once paid family leave uses them.eligible-after-twelve-months-and-1250-hours,fewer-than-1250-hours-is-refused,a-lower-bar-of-hours,less-than-twelve-months-of-service-is-refused,earlier-employment-counts-toward-service,service-from-the-current-hire,not-eligible-flagged-for-the-approver: eligibility by hours and service, each parameter changing the outcome.
Legal note
The federal Family and Medical Leave Act covers employers with 50 or more employees, and its eligibility also asks for 50 employees within 75 miles of the worksite, which this recipe does not check. Service from an employment that ended seven or more years before generally does not count. Several states have their own family leave laws, with other entitlements, eligibility and periods, and some run paid family leave programs. The employer must tell the person when leave is designated as protected. Check the rules where you operate.
Get the recipe
The recipe’s package and its scenarios are in the example packages repository: attendance/protected_leave. 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 = "protected_leave"version = "1.0.0"description = "Family and medical leave: 12 weeks of the person's usual week a calendar year, counted by the hour, for someone with 12 months of service and 1,250 hours worked in the 12 months before; paid time off used first, and protected leave never refused for its balance."
# What the tenant must have set up for the recipe: the steps read these by name.[needs]accrual_categories = ["hours_worked", "pto"]
# Monthly pay periods; balances kept from January 1, 2025. Every hour# worked earns an hour of hours_worked on the day it is worked, which no# leave uses: the hours an eligibility rule reads. Four rules, each a step# of its own: a family# leave request (fmla unpaid, fmla_pto paid from the pto balance) is# refused for someone not yet eligible, or past 12 weeks of their usual# week (the employment attribute usual_week) in the calendar year; unpaid# family leave is refused while the pto balance has time left; and pto# itself may not go below nothing.[[layer]]id = "family-leave"settings = { pay_periods = { month_days = [1] }, accruals = { since = "2025-01-01" } }[[layer.step]]id = "hours"uses = "standard/accrue"params = { category = "hours_worked", earn = "1h", per = "1h", window = "day" }[[layer.step]]id = "eligible"uses = "standard/leave_eligibility"params = { categories = ["fmla", "fmla_pto"], worked = "hours_worked" }[[layer.step]]id = "entitlement"uses = "standard/leave_entitlement"params = { categories = ["fmla", "fmla_pto"], week_attribute = "usual_week" }[[layer.step]]id = "paid-first"uses = "standard/leave_balance_first"params = { balance = { fmla = "pto" } }[[layer.step]]id = "balance"uses = "standard/leave_balance"params = { balance = { pto = "pto" } }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 employer's leave year runs from July 1. Ten days in May 2026 are 80 hours of the 96 of the leave year from July 2025; three days in July are in the next leave year: they stand, where in a calendar year they would come to 104 hours
description = "The employer's leave year runs from July 1. Ten days in May 2026 are 80 hours of the 96 of the leave year from July 2025; three days in July are in the next leave year: they stand, where in a calendar year they would come to 104 hours"
[policy]zone = "America/Chicago"
[[category]]id = "fmla"worked = false
[[category]]id = "fmla_pto"worked = false
[[category]]id = "pto"worked = false
[[accrual_category]]id = "pto"uses = ["pto", "fmla_pto"]
[[accrual_category]]id = "hours_worked"uses = []
[[employment]]effective = "2024-01-02"kind = "hired"attributes = { usual_week = "8h" }
# A fixed leave year from July 1.[[layer]]id = "leave-year"[[layer.step]]id = "eligible"change = "disable"[[layer.step]]id = "entitlement"change = "params"params = { within = { every = "1y", starts = "07-01" } }
[[leave]]id = "v1"category = "fmla"days = { "2026-05-04" = "8h", "2026-05-05" = "8h", "2026-05-06" = "8h", "2026-05-07" = "8h", "2026-05-08" = "8h", "2026-05-11" = "8h", "2026-05-12" = "8h", "2026-05-13" = "8h", "2026-05-14" = "8h", "2026-05-15" = "8h" }recorded = "2026-04-20 09:00"
[[leave]]id = "v2"category = "fmla"days = { "2026-07-06" = "8h", "2026-07-07" = "8h", "2026-07-08" = "8h" }recorded = "2026-06-01 09:00"
[expect.period]day = "2026-07-06"leave = ["v2 pending approval"]Under a law that asks for 1,000 hours rather than 1,250: 1,200 hours worked in the 12 months before February 2, 2026 are enough. Their family leave stands
description = "Under a law that asks for 1,000 hours rather than 1,250: 1,200 hours worked in the 12 months before February 2, 2026 are enough. Their family leave stands"
[policy]zone = "America/Chicago"
[[category]]id = "fmla"worked = false
[[category]]id = "fmla_pto"worked = false
[[category]]id = "pto"worked = false
[[accrual_category]]id = "pto"uses = ["pto", "fmla_pto"]
[[accrual_category]]id = "hours_worked"uses = []
[[measure]]id = "hours"kind = "duration"
[[employment]]effective = "2025-01-06"kind = "hired"attributes = { usual_week = "40h" }
# A state law with a lower bar.[[layer]]id = "variant"[[layer.step]]id = "eligible"change = "params"params = { hours = "1000h" }
[[labor]]workday = "2025-01-15"measure = "hours"quantity = "100h"category = "work"
[[labor]]workday = "2025-02-15"measure = "hours"quantity = "100h"category = "work"
[[labor]]workday = "2025-03-15"measure = "hours"quantity = "100h"category = "work"
[[labor]]workday = "2025-04-15"measure = "hours"quantity = "100h"category = "work"
[[labor]]workday = "2025-05-15"measure = "hours"quantity = "100h"category = "work"
[[labor]]workday = "2025-06-15"measure = "hours"quantity = "100h"category = "work"
[[labor]]workday = "2025-07-15"measure = "hours"quantity = "100h"category = "work"
[[labor]]workday = "2025-08-15"measure = "hours"quantity = "100h"category = "work"
[[labor]]workday = "2025-09-15"measure = "hours"quantity = "100h"category = "work"
[[labor]]workday = "2025-10-15"measure = "hours"quantity = "100h"category = "work"
[[labor]]workday = "2025-11-15"measure = "hours"quantity = "100h"category = "work"
[[labor]]workday = "2025-12-15"measure = "hours"quantity = "100h"category = "work"
[[labor]]workday = "2026-01-15"measure = "hours"quantity = "100h"category = "work"
[[leave]]id = "v1"category = "fmla"days = { "2026-02-02" = "8h", "2026-02-03" = "8h" }recorded = "2026-01-20 09:00"
[expect.period]day = "2026-02-02"leave = ["v1 pending approval"]Ten days of family leave in November and December 2025, 80 hours of the 96, leave the year's entitlement nearly used; five days in January 2026 are in a new year: they stand
description = "Ten days of family leave in November and December 2025, 80 hours of the 96, leave the year's entitlement nearly used; five days in January 2026 are in a new year: they stand"
[policy]zone = "America/Chicago"
[[category]]id = "fmla"worked = false
[[category]]id = "fmla_pto"worked = false
[[category]]id = "pto"worked = false
[[accrual_category]]id = "pto"uses = ["pto", "fmla_pto"]
[[accrual_category]]id = "hours_worked"uses = []
[[employment]]effective = "2024-01-02"kind = "hired"attributes = { usual_week = "8h" }
[[layer]]id = "entitlement-only"[[layer.step]]id = "eligible"change = "disable"
[[leave]]id = "v1"category = "fmla"days = { "2025-11-03" = "8h", "2025-11-04" = "8h", "2025-11-05" = "8h", "2025-11-06" = "8h", "2025-11-07" = "8h", "2025-12-01" = "8h", "2025-12-02" = "8h", "2025-12-03" = "8h", "2025-12-04" = "8h", "2025-12-05" = "8h" }recorded = "2025-10-20 09:00"
[[leave]]id = "v2"category = "fmla"days = { "2026-01-05" = "8h", "2026-01-06" = "8h", "2026-01-07" = "8h", "2026-01-08" = "8h", "2026-01-09" = "8h" }recorded = "2025-12-20 09:00"
[expect.period]day = "2026-01-05"leave = ["v2 pending approval"]Counting the rolling 12 months: five days from November 3, 2025 and five from March 2, 2026 are 80 hours. Three days from November 9, 2026 reach back only to November 12, 2025: the November 2025 days are out of it, so they make 64 hours and stand
description = "Counting the rolling 12 months: five days from November 3, 2025 and five from March 2, 2026 are 80 hours. Three days from November 9, 2026 reach back only to November 12, 2025: the November 2025 days are out of it, so they make 64 hours and stand"
[policy]zone = "America/Chicago"
[[category]]id = "fmla"worked = false
[[category]]id = "fmla_pto"worked = false
[[category]]id = "pto"worked = false
[[accrual_category]]id = "pto"uses = ["pto", "fmla_pto"]
[[accrual_category]]id = "hours_worked"uses = []
[[employment]]effective = "2024-01-02"kind = "hired"attributes = { usual_week = "8h" }
[[layer]]id = "rolling"[[layer.step]]id = "eligible"change = "disable"[[layer.step]]id = "entitlement"change = "params"params = { within = { last = "12mo" } }
[[leave]]id = "v1"category = "fmla"days = { "2025-11-03" = "8h", "2025-11-04" = "8h", "2025-11-05" = "8h", "2025-11-06" = "8h", "2025-11-07" = "8h" }recorded = "2025-10-20 09:00"
[[leave]]id = "v2"category = "fmla"days = { "2026-03-02" = "8h", "2026-03-03" = "8h", "2026-03-04" = "8h", "2026-03-05" = "8h", "2026-03-06" = "8h" }recorded = "2026-02-20 09:00"
[[leave]]id = "v4"category = "fmla"days = { "2026-11-09" = "8h", "2026-11-10" = "8h", "2026-11-11" = "8h" }recorded = "2026-10-20 09:00"
[expect.period]day = "2026-11-09"leave = ["v4 pending approval"]Counting the rolling 12 months: five days from June 1 and five from September 7, 2026 were asked for first, 80 hours. Three days from March 2, 2026, asked for later, are within the 12 months before each September day: the 12 months to September 11 would hold 104 hours, so the March request is refused, though the 12 months to its own days hold only it
description = "Counting the rolling 12 months: five days from June 1 and five from September 7, 2026 were asked for first, 80 hours. Three days from March 2, 2026, asked for later, are within the 12 months before each September day: the 12 months to September 11 would hold 104 hours, so the March request is refused, though the 12 months to its own days hold only it"
[policy]zone = "America/Chicago"
[[category]]id = "fmla"worked = false
[[category]]id = "fmla_pto"worked = false
[[category]]id = "pto"worked = false
[[accrual_category]]id = "pto"uses = ["pto", "fmla_pto"]
[[accrual_category]]id = "hours_worked"uses = []
[[employment]]effective = "2024-01-02"kind = "hired"attributes = { usual_week = "8h" }
[[layer]]id = "rolling"[[layer.step]]id = "eligible"change = "disable"[[layer.step]]id = "entitlement"change = "params"params = { within = { last = "12mo" } }
[[leave]]id = "v1"category = "fmla"days = { "2026-06-01" = "8h", "2026-06-02" = "8h", "2026-06-03" = "8h", "2026-06-04" = "8h", "2026-06-05" = "8h" }recorded = "2026-02-01 09:00"
[[leave]]id = "v2"category = "fmla"days = { "2026-09-07" = "8h", "2026-09-08" = "8h", "2026-09-09" = "8h", "2026-09-10" = "8h", "2026-09-11" = "8h" }recorded = "2026-02-02 09:00"
[[leave]]id = "v3"category = "fmla"days = { "2026-03-02" = "8h", "2026-03-03" = "8h", "2026-03-04" = "8h" }recorded = "2026-02-03 09:00"
[expect.period]day = "2026-03-02"leave = ["v3 refused: 104h of protected leave from 2025-09-12 to 2026-09-11, more than 12 weeks of 8h"]First hired January 3, 2023, left at the end of June 2024, and hired again September 1, 2025, with 210 hours worked each month since. By March 2, 2026 the service from the first hire is more than 12 months, and the 12 months before hold 1,260 hours: their family leave stands
description = "First hired January 3, 2023, left at the end of June 2024, and hired again September 1, 2025, with 210 hours worked each month since. By March 2, 2026 the service from the first hire is more than 12 months, and the 12 months before hold 1,260 hours: their family leave stands"
[policy]zone = "America/Chicago"
[[category]]id = "fmla"worked = false
[[category]]id = "fmla_pto"worked = false
[[category]]id = "pto"worked = false
[[accrual_category]]id = "pto"uses = ["pto", "fmla_pto"]
[[accrual_category]]id = "hours_worked"uses = []
[[measure]]id = "hours"kind = "duration"
[[employment]]effective = "2023-01-03"kind = "hired"attributes = { usual_week = "40h" }
[[employment]]effective = "2024-06-29"kind = "terminated"
[[employment]]effective = "2025-09-01"kind = "hired"attributes = { usual_week = "40h" }
[[labor]]workday = "2025-09-15"measure = "hours"quantity = "210h"category = "work"
[[labor]]workday = "2025-10-15"measure = "hours"quantity = "210h"category = "work"
[[labor]]workday = "2025-11-15"measure = "hours"quantity = "210h"category = "work"
[[labor]]workday = "2025-12-15"measure = "hours"quantity = "210h"category = "work"
[[labor]]workday = "2026-01-15"measure = "hours"quantity = "210h"category = "work"
[[labor]]workday = "2026-02-15"measure = "hours"quantity = "210h"category = "work"
[[leave]]id = "v1"category = "fmla"days = { "2026-03-02" = "8h", "2026-03-03" = "8h" }recorded = "2026-02-20 09:00"
[expect.period]day = "2026-03-02"leave = ["v1 pending approval"]Hired January 6, 2025, and 110 hours worked each month: by February 2, 2026 the person has 12 months of service and 1,320 hours worked in the 12 months before. Their family leave stands
description = "Hired January 6, 2025, and 110 hours worked each month: by February 2, 2026 the person has 12 months of service and 1,320 hours worked in the 12 months before. Their family leave stands"
[policy]zone = "America/Chicago"
[[category]]id = "fmla"worked = false
[[category]]id = "fmla_pto"worked = false
[[category]]id = "pto"worked = false
[[accrual_category]]id = "pto"uses = ["pto", "fmla_pto"]
[[accrual_category]]id = "hours_worked"uses = []
[[measure]]id = "hours"kind = "duration"
[[employment]]effective = "2025-01-06"kind = "hired"attributes = { usual_week = "40h" }
[[labor]]workday = "2025-01-15"measure = "hours"quantity = "110h"category = "work"
[[labor]]workday = "2025-02-15"measure = "hours"quantity = "110h"category = "work"
[[labor]]workday = "2025-03-15"measure = "hours"quantity = "110h"category = "work"
[[labor]]workday = "2025-04-15"measure = "hours"quantity = "110h"category = "work"
[[labor]]workday = "2025-05-15"measure = "hours"quantity = "110h"category = "work"
[[labor]]workday = "2025-06-15"measure = "hours"quantity = "110h"category = "work"
[[labor]]workday = "2025-07-15"measure = "hours"quantity = "110h"category = "work"
[[labor]]workday = "2025-08-15"measure = "hours"quantity = "110h"category = "work"
[[labor]]workday = "2025-09-15"measure = "hours"quantity = "110h"category = "work"
[[labor]]workday = "2025-10-15"measure = "hours"quantity = "110h"category = "work"
[[labor]]workday = "2025-11-15"measure = "hours"quantity = "110h"category = "work"
[[labor]]workday = "2025-12-15"measure = "hours"quantity = "110h"category = "work"
[[labor]]workday = "2026-01-15"measure = "hours"quantity = "110h"category = "work"
[[leave]]id = "v1"category = "fmla"days = { "2026-02-02" = "8h", "2026-02-03" = "8h" }recorded = "2026-01-20 09:00"
[expect.period]day = "2026-02-02"leave = ["v1 pending approval"]Hired January 6, 2025, and 100 hours worked each month: by February 2, 2026 the person has 12 months of service but only 1,200 hours worked in the 12 months before, short of 1,250. Their family leave is refused
description = "Hired January 6, 2025, and 100 hours worked each month: by February 2, 2026 the person has 12 months of service but only 1,200 hours worked in the 12 months before, short of 1,250. Their family leave is refused"
[policy]zone = "America/Chicago"
[[category]]id = "fmla"worked = false
[[category]]id = "fmla_pto"worked = false
[[category]]id = "pto"worked = false
[[accrual_category]]id = "pto"uses = ["pto", "fmla_pto"]
[[accrual_category]]id = "hours_worked"uses = []
[[measure]]id = "hours"kind = "duration"
[[employment]]effective = "2025-01-06"kind = "hired"attributes = { usual_week = "40h" }
[[labor]]workday = "2025-01-15"measure = "hours"quantity = "100h"category = "work"
[[labor]]workday = "2025-02-15"measure = "hours"quantity = "100h"category = "work"
[[labor]]workday = "2025-03-15"measure = "hours"quantity = "100h"category = "work"
[[labor]]workday = "2025-04-15"measure = "hours"quantity = "100h"category = "work"
[[labor]]workday = "2025-05-15"measure = "hours"quantity = "100h"category = "work"
[[labor]]workday = "2025-06-15"measure = "hours"quantity = "100h"category = "work"
[[labor]]workday = "2025-07-15"measure = "hours"quantity = "100h"category = "work"
[[labor]]workday = "2025-08-15"measure = "hours"quantity = "100h"category = "work"
[[labor]]workday = "2025-09-15"measure = "hours"quantity = "100h"category = "work"
[[labor]]workday = "2025-10-15"measure = "hours"quantity = "100h"category = "work"
[[labor]]workday = "2025-11-15"measure = "hours"quantity = "100h"category = "work"
[[labor]]workday = "2025-12-15"measure = "hours"quantity = "100h"category = "work"
[[labor]]workday = "2026-01-15"measure = "hours"quantity = "100h"category = "work"
[[leave]]id = "v1"category = "fmla"days = { "2026-02-02" = "8h", "2026-02-03" = "8h" }recorded = "2026-01-20 09:00"
[expect.period]day = "2026-02-02"leave = ["v1 refused: 1200h worked from 2025-02-02 to 2026-02-01, less than 1250h"]Hired June 2, 2025, with 210 hours worked each month since: by March 2, 2026 the hours are there but not 12 months of service. Their family leave is refused
description = "Hired June 2, 2025, with 210 hours worked each month since: by March 2, 2026 the hours are there but not 12 months of service. Their family leave is refused"
[policy]zone = "America/Chicago"
[[category]]id = "fmla"worked = false
[[category]]id = "fmla_pto"worked = false
[[category]]id = "pto"worked = false
[[accrual_category]]id = "pto"uses = ["pto", "fmla_pto"]
[[accrual_category]]id = "hours_worked"uses = []
[[measure]]id = "hours"kind = "duration"
[[employment]]effective = "2025-06-02"kind = "hired"attributes = { usual_week = "40h" }
[[labor]]workday = "2025-06-15"measure = "hours"quantity = "210h"category = "work"
[[labor]]workday = "2025-07-15"measure = "hours"quantity = "210h"category = "work"
[[labor]]workday = "2025-08-15"measure = "hours"quantity = "210h"category = "work"
[[labor]]workday = "2025-09-15"measure = "hours"quantity = "210h"category = "work"
[[labor]]workday = "2025-10-15"measure = "hours"quantity = "210h"category = "work"
[[labor]]workday = "2025-11-15"measure = "hours"quantity = "210h"category = "work"
[[labor]]workday = "2025-12-15"measure = "hours"quantity = "210h"category = "work"
[[labor]]workday = "2026-01-15"measure = "hours"quantity = "210h"category = "work"
[[labor]]workday = "2026-02-15"measure = "hours"quantity = "210h"category = "work"
[[leave]]id = "v1"category = "fmla"days = { "2026-03-02" = "8h", "2026-03-03" = "8h" }recorded = "2026-02-20 09:00"
[expect.period]day = "2026-03-02"leave = ["v1 refused: less than 12mo of service by 2026-03-02"]An employer that has the approver decide: with flag, a request from someone short of the 1,250 hours is not refused but raised as leave_not_eligible on its first day
description = "An employer that has the approver decide: with flag, a request from someone short of the 1,250 hours is not refused but raised as leave_not_eligible on its first day"
[policy]zone = "America/Chicago"
[[category]]id = "fmla"worked = false
[[category]]id = "fmla_pto"worked = false
[[category]]id = "pto"worked = false
[[accrual_category]]id = "pto"uses = ["pto", "fmla_pto"]
[[accrual_category]]id = "hours_worked"uses = []
[[measure]]id = "hours"kind = "duration"
[[employment]]effective = "2025-01-06"kind = "hired"attributes = { usual_week = "40h" }
# The approver decides.[[layer]]id = "variant"[[layer.step]]id = "eligible"change = "params"params = { flag = true }
[[labor]]workday = "2025-01-15"measure = "hours"quantity = "100h"category = "work"
[[labor]]workday = "2025-02-15"measure = "hours"quantity = "100h"category = "work"
[[labor]]workday = "2025-03-15"measure = "hours"quantity = "100h"category = "work"
[[labor]]workday = "2025-04-15"measure = "hours"quantity = "100h"category = "work"
[[labor]]workday = "2025-05-15"measure = "hours"quantity = "100h"category = "work"
[[labor]]workday = "2025-06-15"measure = "hours"quantity = "100h"category = "work"
[[labor]]workday = "2025-07-15"measure = "hours"quantity = "100h"category = "work"
[[labor]]workday = "2025-08-15"measure = "hours"quantity = "100h"category = "work"
[[labor]]workday = "2025-09-15"measure = "hours"quantity = "100h"category = "work"
[[labor]]workday = "2025-10-15"measure = "hours"quantity = "100h"category = "work"
[[labor]]workday = "2025-11-15"measure = "hours"quantity = "100h"category = "work"
[[labor]]workday = "2025-12-15"measure = "hours"quantity = "100h"category = "work"
[[labor]]workday = "2026-01-15"measure = "hours"quantity = "100h"category = "work"
[[leave]]id = "v1"category = "fmla"days = { "2026-02-02" = "8h", "2026-02-03" = "8h" }recorded = "2026-01-20 09:00"
[expect.period]day = "2026-02-02"leave = ["v1 pending approval"]exceptions = [{ kind = "leave_not_eligible", at = "2026-02-02 00:00", detail = "1200h worked from 2025-02-02 to 2026-02-01, less than 1250h" }]An employer that has the approver decide: with flag, a request past the 96 hours is not refused but raised as leave_over_entitlement on its first day, and waits for approval
description = "An employer that has the approver decide: with flag, a request past the 96 hours is not refused but raised as leave_over_entitlement on its first day, and waits for approval"
[policy]zone = "America/Chicago"
[[category]]id = "fmla"worked = false
[[category]]id = "fmla_pto"worked = false
[[category]]id = "pto"worked = false
[[accrual_category]]id = "pto"uses = ["pto", "fmla_pto"]
[[accrual_category]]id = "hours_worked"uses = []
[[employment]]effective = "2024-01-02"kind = "hired"attributes = { usual_week = "8h" }
[[layer]]id = "flagged"[[layer.step]]id = "eligible"change = "disable"[[layer.step]]id = "entitlement"change = "params"params = { flag = true }
[[leave]]id = "v1"category = "fmla"days = { "2026-02-02" = "8h", "2026-02-03" = "8h", "2026-02-04" = "8h", "2026-02-05" = "8h", "2026-02-06" = "8h", "2026-02-09" = "8h", "2026-02-10" = "8h", "2026-02-11" = "8h", "2026-02-12" = "8h", "2026-02-13" = "8h" }recorded = "2026-01-20 09:00"
[[leave]]id = "v2"category = "fmla"days = { "2026-02-23" = "8h", "2026-02-24" = "8h", "2026-02-25" = "8h" }recorded = "2026-02-01 09:00"
[expect.period]day = "2026-02-23"leave = ["v1 pending approval", "v2 pending approval"]exceptions = [{ kind = "leave_over_entitlement", at = "2026-02-23 00:00", detail = "104h of protected leave from 2026-01-01 to 2026-12-31, more than 12 weeks of 8h" }]Paid family leave (fmla_pto) draws on the pto balance but is not held to it: with 8 hours of pto, two paid family leave days of 8 hours stand. A pto day asked for after them would leave the balance below nothing: refused
description = "Paid family leave (fmla_pto) draws on the pto balance but is not held to it: with 8 hours of pto, two paid family leave days of 8 hours stand. A pto day asked for after them would leave the balance below nothing: refused"
[policy]zone = "America/Chicago"
[[category]]id = "fmla"worked = false
[[category]]id = "fmla_pto"worked = false
[[category]]id = "pto"worked = false
[[accrual_category]]id = "pto"uses = ["pto", "fmla_pto"]
[[accrual_category]]id = "hours_worked"uses = []
[[employment]]effective = "2024-01-02"kind = "hired"attributes = { usual_week = "40h" }
[[layer]]id = "entitlement-only"[[layer.step]]id = "eligible"change = "disable"
[[accrual_adjustment]]category = "pto"workday = "2026-01-02"amount = "8h"recorded = "2026-01-02 09:00"
[[leave]]id = "v1"category = "fmla_pto"days = { "2026-02-02" = "8h", "2026-02-03" = "8h" }recorded = "2026-01-20 09:00"
[[leave]]id = "v2"category = "pto"days = { "2026-02-09" = "8h" }recorded = "2026-01-21 09:00"
[expect.period]day = "2026-02-02"leave = ["v1 pending approval", "v2 refused: it would leave the pto balance below 0h"]An employer that counts only the current employment (service_from = "hired"): first hired in 2023, left in June 2024 and hired again September 1, 2025, the person has less than 12 months of service by March 2, 2026. Their family leave is refused
description = "An employer that counts only the current employment (service_from = \"hired\"): first hired in 2023, left in June 2024 and hired again September 1, 2025, the person has less than 12 months of service by March 2, 2026. Their family leave is refused"
[policy]zone = "America/Chicago"
[[category]]id = "fmla"worked = false
[[category]]id = "fmla_pto"worked = false
[[category]]id = "pto"worked = false
[[accrual_category]]id = "pto"uses = ["pto", "fmla_pto"]
[[accrual_category]]id = "hours_worked"uses = []
[[measure]]id = "hours"kind = "duration"
[[employment]]effective = "2023-01-03"kind = "hired"attributes = { usual_week = "40h" }
[[employment]]effective = "2024-06-29"kind = "terminated"
[[employment]]effective = "2025-09-01"kind = "hired"attributes = { usual_week = "40h" }
# Service counts from the current hire.[[layer]]id = "current-hire"[[layer.step]]id = "eligible"change = "params"params = { service_from = "hired" }
[[labor]]workday = "2025-09-15"measure = "hours"quantity = "210h"category = "work"
[[labor]]workday = "2025-10-15"measure = "hours"quantity = "210h"category = "work"
[[labor]]workday = "2025-11-15"measure = "hours"quantity = "210h"category = "work"
[[labor]]workday = "2025-12-15"measure = "hours"quantity = "210h"category = "work"
[[labor]]workday = "2026-01-15"measure = "hours"quantity = "210h"category = "work"
[[labor]]workday = "2026-02-15"measure = "hours"quantity = "210h"category = "work"
[[leave]]id = "v1"category = "fmla"days = { "2026-03-02" = "8h", "2026-03-03" = "8h" }recorded = "2026-02-20 09:00"
[expect.period]day = "2026-03-02"leave = ["v1 refused: less than 12mo of service by 2026-03-02"]A person whose usual week is one 8-hour day has 12 weeks of 8 hours, 96 hours, of family leave a calendar year. Five days in February and five in March come to 80 hours; three more days in April would make 104: refused
description = "A person whose usual week is one 8-hour day has 12 weeks of 8 hours, 96 hours, of family leave a calendar year. Five days in February and five in March come to 80 hours; three more days in April would make 104: refused"
[policy]zone = "America/Chicago"
[[category]]id = "fmla"worked = false
[[category]]id = "fmla_pto"worked = false
[[category]]id = "pto"worked = false
[[accrual_category]]id = "pto"uses = ["pto", "fmla_pto"]
[[accrual_category]]id = "hours_worked"uses = []
[[employment]]effective = "2024-01-02"kind = "hired"attributes = { usual_week = "8h" }
# Eligibility is shown on its own (the eligibility scenarios).[[layer]]id = "entitlement-only"[[layer.step]]id = "eligible"change = "disable"
[[leave]]id = "v1"category = "fmla"days = { "2026-02-02" = "8h", "2026-02-03" = "8h", "2026-02-04" = "8h", "2026-02-05" = "8h", "2026-02-06" = "8h" }recorded = "2026-01-20 09:00"
[[leave]]id = "v2"category = "fmla"days = { "2026-03-02" = "8h", "2026-03-03" = "8h", "2026-03-04" = "8h", "2026-03-05" = "8h", "2026-03-06" = "8h" }recorded = "2026-02-20 09:00"
[[leave]]id = "v3"category = "fmla"days = { "2026-04-06" = "8h", "2026-04-07" = "8h", "2026-04-08" = "8h" }recorded = "2026-03-20 09:00"
[expect.period]day = "2026-04-06"leave = ["v3 refused: 104h of protected leave from 2026-01-01 to 2026-12-31, more than 12 weeks of 8h"]Each use is checked against the 12 months up to it. Five days from November 3, 2025 and five from March 2, 2026 are 80 hours; three days from October 5, 2026 would make 104 in the 12 months to October 7: refused
description = "Each use is checked against the 12 months up to it. Five days from November 3, 2025 and five from March 2, 2026 are 80 hours; three days from October 5, 2026 would make 104 in the 12 months to October 7: refused"
[policy]zone = "America/Chicago"
[[category]]id = "fmla"worked = false
[[category]]id = "fmla_pto"worked = false
[[category]]id = "pto"worked = false
[[accrual_category]]id = "pto"uses = ["pto", "fmla_pto"]
[[accrual_category]]id = "hours_worked"uses = []
[[employment]]effective = "2024-01-02"kind = "hired"attributes = { usual_week = "8h" }
# The rolling 12 months up to each use.[[layer]]id = "rolling"[[layer.step]]id = "eligible"change = "disable"[[layer.step]]id = "entitlement"change = "params"params = { within = { last = "12mo" } }
[[leave]]id = "v1"category = "fmla"days = { "2025-11-03" = "8h", "2025-11-04" = "8h", "2025-11-05" = "8h", "2025-11-06" = "8h", "2025-11-07" = "8h" }recorded = "2025-10-20 09:00"
[[leave]]id = "v2"category = "fmla"days = { "2026-03-02" = "8h", "2026-03-03" = "8h", "2026-03-04" = "8h", "2026-03-05" = "8h", "2026-03-06" = "8h" }recorded = "2026-02-20 09:00"
[[leave]]id = "v3"category = "fmla"days = { "2026-10-05" = "8h", "2026-10-06" = "8h", "2026-10-07" = "8h" }recorded = "2026-09-20 09:00"
[expect.period]day = "2026-10-05"leave = ["v3 refused: 104h of protected leave from 2025-10-08 to 2026-10-07, more than 12 weeks of 8h"]The 12 months are counted from the first use: five days from February 2, 2026 start a period to February 1, 2027. Five days in November make 80 hours; three days from January 28 to February 1, 2027 would make 104: refused. Three days from February 8 are the first use after the period ends, and start the next: they stand
description = "The 12 months are counted from the first use: five days from February 2, 2026 start a period to February 1, 2027. Five days in November make 80 hours; three days from January 28 to February 1, 2027 would make 104: refused. Three days from February 8 are the first use after the period ends, and start the next: they stand"
[policy]zone = "America/Chicago"
[[category]]id = "fmla"worked = false
[[category]]id = "fmla_pto"worked = false
[[category]]id = "pto"worked = false
[[accrual_category]]id = "pto"uses = ["pto", "fmla_pto"]
[[accrual_category]]id = "hours_worked"uses = []
[[employment]]effective = "2024-01-02"kind = "hired"attributes = { usual_week = "8h" }
# 12 months from the first use.[[layer]]id = "from-first-use"[[layer.step]]id = "eligible"change = "disable"[[layer.step]]id = "entitlement"change = "params"params = { within = { next = "12mo" } }
[[leave]]id = "v1"category = "fmla"days = { "2026-02-02" = "8h", "2026-02-03" = "8h", "2026-02-04" = "8h", "2026-02-05" = "8h", "2026-02-06" = "8h" }recorded = "2026-01-20 09:00"
[[leave]]id = "v2"category = "fmla"days = { "2026-11-02" = "8h", "2026-11-03" = "8h", "2026-11-04" = "8h", "2026-11-05" = "8h", "2026-11-06" = "8h" }recorded = "2026-10-20 09:00"
[[leave]]id = "v3"category = "fmla"days = { "2027-01-28" = "8h", "2027-01-29" = "8h", "2027-02-01" = "8h" }recorded = "2027-01-10 09:00"
[[leave]]id = "v4"category = "fmla"days = { "2027-02-08" = "8h", "2027-02-09" = "8h", "2027-02-10" = "8h" }recorded = "2027-01-11 09:00"
[expect.period]day = "2027-02-01"leave = [ "v3 refused: 104h of protected leave from 2026-02-02 to 2027-02-01, more than 12 weeks of 8h", "v4 pending approval",]The employer has paid time off used alongside family leave: with 16 hours of pto, three days of unpaid family leave are refused. Asked again as two days of paid family leave (fmla_pto), using the 16 hours, and then three unpaid days, both stand: nothing is left of the pto by the unpaid days
description = "The employer has paid time off used alongside family leave: with 16 hours of pto, three days of unpaid family leave are refused. Asked again as two days of paid family leave (fmla_pto), using the 16 hours, and then three unpaid days, both stand: nothing is left of the pto by the unpaid days"
[policy]zone = "America/Chicago"
[[category]]id = "fmla"worked = false
[[category]]id = "fmla_pto"worked = false
[[category]]id = "pto"worked = false
[[accrual_category]]id = "pto"uses = ["pto", "fmla_pto"]
[[accrual_category]]id = "hours_worked"uses = []
[[employment]]effective = "2024-01-02"kind = "hired"attributes = { usual_week = "40h" }
[[layer]]id = "entitlement-only"[[layer.step]]id = "eligible"change = "disable"
[[accrual_adjustment]]category = "pto"workday = "2026-01-02"amount = "16h"recorded = "2026-01-02 09:00"
[[leave]]id = "v1"category = "fmla"days = { "2026-02-02" = "8h", "2026-02-03" = "8h", "2026-02-04" = "8h" }recorded = "2026-01-20 09:00"
[[leave]]id = "v2"category = "fmla_pto"days = { "2026-02-09" = "8h", "2026-02-10" = "8h" }recorded = "2026-01-21 09:00"
[[leave]]id = "v3"category = "fmla"days = { "2026-02-11" = "8h", "2026-02-12" = "8h", "2026-02-13" = "8h" }recorded = "2026-01-22 09:00"
[expect.period]day = "2026-02-02"leave = ["v1 refused: 16h of pto is left to use first", "v2 pending approval", "v3 pending approval"]A person with no usual_week attribute is held to the policy's week, 40 hours: 12 weeks are 480 hours. Intermittent leave, counted by the hour: 100 hours of half days and whole days stand
description = "A person with no usual_week attribute is held to the policy's week, 40 hours: 12 weeks are 480 hours. Intermittent leave, counted by the hour: 100 hours of half days and whole days stand"
[policy]zone = "America/Chicago"
[[category]]id = "fmla"worked = false
[[category]]id = "fmla_pto"worked = false
[[category]]id = "pto"worked = false
[[accrual_category]]id = "pto"uses = ["pto", "fmla_pto"]
[[accrual_category]]id = "hours_worked"uses = []
[[employment]]effective = "2024-01-02"kind = "hired"
[[layer]]id = "entitlement-only"[[layer.step]]id = "eligible"change = "disable"
[[leave]]id = "v1"category = "fmla"days = { "2026-02-02" = "4h", "2026-02-03" = "4h", "2026-02-04" = "8h", "2026-02-05" = "8h", "2026-02-06" = "8h", "2026-02-09" = "8h", "2026-02-10" = "8h", "2026-02-11" = "8h", "2026-02-12" = "8h", "2026-02-13" = "8h" }recorded = "2026-01-20 09:00"
[[leave]]id = "v2"category = "fmla"days = { "2026-02-23" = "8h", "2026-02-24" = "8h", "2026-02-25" = "8h", "2026-02-26" = "4h" }recorded = "2026-02-01 09:00"
[expect.period]day = "2026-02-23"leave = ["v1 pending approval", "v2 pending approval"]