UK holiday entitlement from an April leave year
The rule
Workers in the United Kingdom have 5.6 weeks of paid holiday a leave year:
- the leave year starts on a day the employer chooses, often 1 April;
- a worker starting during the year has the share of the months left;
- a few days may be carried into the next leave year by agreement; the rest not taken is lost;
- irregular-hours and part-year workers earn their holiday as they work instead: 12.07% of the hours worked in each pay period.
Who uses it
Employers in the United Kingdom.
How the recipe does it
Configuration only: the package (package.toml) has two layers.
[[layer]]id = "holiday"settings = { accruals = { since = "2026-04-01", leave_year_starts = "04-01" } }[[layer.step]]id = "carryover"uses = "standard/carryover"params = { category = "holiday", limit = "64h", year = { every = "1y", starts = "leave_year" } }[[layer.step]]id = "grant"uses = "standard/grant"params = { category = "holiday", amount = "224h", year = { every = "1y", starts = "leave_year" } }
[[layer]]id = "irregular-hours"applies_to = "attributes.irregular_hours = true"[[layer.step]]id = "grant"change = "disable"[[layer.step]]id = "earned"uses = "standard/accrue"params = { category = "holiday", earn = "1207h", per = "10000h", counts = ["work"] }- The policy’s leave year starts on 1 April (
accruals.leave_year_starts), and the steps’yearis that leave year (starts = "leave_year"). grantgives the year’s 224 hours (5.6 weeks of five 8-hour days) on 1 April, and a new starter the share of the months left, the month they start in counted whole.carryoverforfeits, as the leave year starts, what is left above 64 hours (8 days).- For irregular-hours workers (the employment attribute
irregular_hours), the grant is off andaccrueearns 1,207 hours for every 10,000 worked: 12.07%, worked out exactly.
Their holiday is paid at the average of their last 52 weeks with pay (the
holiday_pay_average_earnings recipe), or rolled up into their pay
(rolled_up_holiday_pay).
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
holiday: 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 |
|---|---|---|
grant | amount, year | The leave year’s hours and when the leave year starts. |
carryover | limit, year | What may be carried into the next leave year. |
accrue | earn, per, counts | 12.07% of the hours worked. |
What the scenarios show
the-leave-year-starts-in-april: 40 hours taken, 120 forfeited, 224 given on 1 April 2027: 288.a-new-starter-gets-the-months-left: half the year, 112 hours.irregular-hours-earn-12-07-per-cent-of-hours-worked: 30 hours earn 3 hours 37 minutes and 15.6 seconds.
Legal note
This is a common way to keep UK statutory holiday; check the rules where you operate. Rules change and vary by contract: bank holidays may be part of the 5.6 weeks or on top of them, how much may be carried over (and when leave not taken through sickness or family leave carries over) is set by law and agreement, and a starter’s share may be worked out by the days rather than the months.
Get the recipe
The recipe’s package and its scenarios are in the example packages repository: attendance/uk_holiday_entitlement. 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 = "uk_holiday_entitlement"version = "1.0.0"description = "UK statutory holiday: 5.6 weeks a leave year from 1 April, a new starter's share by the months left, up to 8 days carried over, and irregular-hours workers earning 12.07% of the hours they work."
# What the tenant must have set up for the recipe: the steps read these by name.[needs]accrual_categories = ["holiday"]
# The leave year starts on 1 April. Each leave year gives 224 hours (5.6# weeks of five 8-hour days) of holiday on its first day, a new starter# the share of the months left; at its start, more than 64 hours (8 days)# left from the year before is forfeited.[[layer]]id = "holiday"settings = { accruals = { since = "2026-04-01", leave_year_starts = "04-01" } }[[layer.step]]id = "carryover"uses = "standard/carryover"params = { category = "holiday", limit = "64h", year = { every = "1y", starts = "leave_year" } }[[layer.step]]id = "grant"uses = "standard/grant"params = { category = "holiday", amount = "224h", year = { every = "1y", starts = "leave_year" } }
# Irregular-hours and part-year workers earn their holiday as they work# instead: 12.07% of the hours worked in each pay period.[[layer]]id = "irregular-hours"applies_to = "attributes.irregular_hours = true"[[layer.step]]id = "grant"change = "disable"[[layer.step]]id = "earned"uses = "standard/accrue"params = { category = "holiday", earn = "1207h", per = "10000h", counts = ["work"] }Scenarios
Each scenario gives a person’s punches and setup and the timecard they must produce, worked out with this package adopted (the format).
Hired on 5 October 2026, six months before the leave year ends (October to March, the month of hire counted whole), a starter is given half the year's 224 hours: 112
description = "Hired on 5 October 2026, six months before the leave year ends (October to March, the month of hire counted whole), a starter is given half the year's 224 hours: 112"
[policy]zone = "Europe/London"
[[category]]id = "holiday"worked = false
[[accrual_category]]id = "holiday"uses = ["holiday"]
[[employment]]effective = "2026-10-05"kind = "hired"
[expect.period]day = "2026-10-05"accruals = ["2026-10-05 holiday earned 112h"]An irregular-hours worker is given no yearly grant: 30 hours worked in the week earn 12.07% of them, 3 hours 37 minutes and 15.6 seconds of holiday
description = "An irregular-hours worker is given no yearly grant: 30 hours worked in the week earn 12.07% of them, 3 hours 37 minutes and 15.6 seconds of holiday"
punch = [ { at = "2026-10-05 08:00", kind = "in" }, { at = "2026-10-05 18:00", kind = "out" }, { at = "2026-10-06 08:00", kind = "in" }, { at = "2026-10-06 18:00", kind = "out" }, { at = "2026-10-07 08:00", kind = "in" }, { at = "2026-10-07 18:00", kind = "out" },]
[policy]zone = "Europe/London"
[[category]]id = "holiday"worked = false
[[accrual_category]]id = "holiday"uses = ["holiday"]
[[employment]]effective = "2026-04-06"kind = "hired"attributes = { irregular_hours = true }
[expect.period]day = "2026-10-05"accruals = ["2026-10-05 holiday earned 3h 37m 15s 600ms"]Hired before the leave year began, a full-time worker is given 224 hours on 1 April 2026 and took 40 of them. On 1 April 2027 the 184 left are more than the 64 that carry over: 120 are forfeited, then the new year's 224 given, 288 in all
description = "Hired before the leave year began, a full-time worker is given 224 hours on 1 April 2026 and took 40 of them. On 1 April 2027 the 184 left are more than the 64 that carry over: 120 are forfeited, then the new year's 224 given, 288 in all"
[policy]zone = "Europe/London"
[[category]]id = "holiday"worked = false
[[accrual_category]]id = "holiday"uses = ["holiday"]
[[employment]]effective = "2025-01-06"kind = "hired"
[[leave]]id = "h1"category = "holiday"days = { "2026-08-03" = "8h", "2026-08-04" = "8h", "2026-08-05" = "8h", "2026-08-06" = "8h", "2026-08-07" = "8h" }recorded = "2026-07-01 09:00"
[[approval]]subject = "leave:h1:2026-08-03"stage = "approval"decision = "approve"recorded = "2026-07-01 10:00"
[expect.period]day = "2027-04-01"accruals = ["2027-04-01 holiday forfeited -120h", "2027-04-01 holiday earned 224h"]balances = { holiday = "288h" }