Skip to content

Leave in whole increments

The rule

Leave is taken in whole increments:

  • sick leave in whole hours: an hour, two hours, never an hour and a half;
  • for exempt staff, paid time off in whole days of eight hours.

A request with a day that is not a whole number of its increment is refused, and the refusal names the day and its time, so the person can ask again.

Who uses it

Employers that set a smallest unit for leave (sick leave laws commonly let an employer set one of up to an hour or up to four hours), and employers whose exempt staff may only have pay docked in whole days.

How the recipe does it

Configuration only: a package (package.toml) of two layers, each with one business rule.

  • sick-hours (everyone): sick leave in whole hours.
  • exempt-days (those whose employment attribute exempt is true): paid time off in whole days.
[[layer.step]]
id = "sick"
uses = "standard/leave_increment"
params = { categories = ["sick"], increment = "1h" }

leave_increment refuses a request in categories with a day whose time is not a whole number of increment.

Parameters

StepParameterMeaning
leave_incrementcategoriesThe leave categories held to the increment.
leave_incrementincrementThe increment (1h; 8h for a whole day of eight hours).

What the scenarios show

  • sick-leave-in-whole-hours: an hour and a half is refused, two hours stand.
  • exempt-staff-take-whole-days: an exempt employee’s half day of paid time off is refused.
  • hourly-staff-take-part-days: for someone not exempt, the same request stands.

Sick leave laws limit how large an increment an employer may set (an hour in some places, four hours or the shift in others). For exempt employees, the rules on deductions from salary for partial-day absences differ for paid leave and for unpaid time. Check the rules where you operate.

Get the recipe

The recipe’s package and its scenarios are in the example packages repository: attendance/leave_increments. 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:

leave_increments/package.toml
name = "leave_increments"
version = "1.0.0"
description = "Leave taken in whole increments: sick leave in blocks of at least an hour, and paid time off in whole days for exempt staff."
# Everyone: sick leave is taken in whole hours.
[[layer]]
id = "sick-hours"
[[layer.step]]
id = "sick"
uses = "standard/leave_increment"
params = { categories = ["sick"], increment = "1h" }
# Exempt staff (the employment attribute exempt): paid time off in whole
# days of eight hours.
[[layer]]
id = "exempt-days"
applies_to = "attributes.exempt = true"
[[layer.step]]
id = "whole-days"
uses = "standard/leave_increment"
params = { categories = ["pto"], increment = "8h" }

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 exempt employee's paid time off is in whole days: a request of a whole day and a half day is refused for the half day
scenarios/exempt-staff-take-whole-days.toml
description = "An exempt employee's paid time off is in whole days: a request of a whole day and a half day is refused for the half day"
[policy]
zone = "America/Denver"
[[category]]
id = "sick"
worked = false
[[category]]
id = "pto"
worked = false
[[employment]]
effective = "2025-01-06"
kind = "hired"
attributes = { exempt = true }
[[leave]]
id = "p1"
category = "pto"
days = { "2026-10-08" = "8h", "2026-10-09" = "4h" }
recorded = "2026-10-01 07:00"
[expect.period]
day = "2026-10-05"
leave = ["p1 refused: 2026-10-09: 4h is not a whole number of 8h"]
For someone not exempt, the whole-day rule does not apply: the same request of a day and a half stands
scenarios/hourly-staff-take-part-days.toml
description = "For someone not exempt, the whole-day rule does not apply: the same request of a day and a half stands"
[policy]
zone = "America/Denver"
[[category]]
id = "sick"
worked = false
[[category]]
id = "pto"
worked = false
[[employment]]
effective = "2025-01-06"
kind = "hired"
attributes = { exempt = false }
[[leave]]
id = "p1"
category = "pto"
days = { "2026-10-08" = "8h", "2026-10-09" = "4h" }
recorded = "2026-10-01 07:00"
[expect.period]
day = "2026-10-05"
leave = ["p1 pending approval"]
Sick leave is taken in whole hours: an hour and a half on Monday is refused, naming the day; two hours on Tuesday stand
scenarios/sick-leave-in-whole-hours.toml
description = "Sick leave is taken in whole hours: an hour and a half on Monday is refused, naming the day; two hours on Tuesday stand"
[policy]
zone = "America/Denver"
[[category]]
id = "sick"
worked = false
[[category]]
id = "pto"
worked = false
[[employment]]
effective = "2025-01-06"
kind = "hired"
attributes = { exempt = false }
[[leave]]
id = "s1"
category = "sick"
days = { "2026-10-05" = "1h 30m" }
recorded = "2026-10-05 07:00"
[[leave]]
id = "s2"
category = "sick"
days = { "2026-10-06" = "2h" }
recorded = "2026-10-06 07:00"
[expect.period]
day = "2026-10-05"
leave = ["s1 refused: 2026-10-05: 1h 30m is not a whole number of 1h", "s2 pending approval"]