Skip to content

New Zealand's Holidays Act

The rule

New Zealand’s Holidays Act 2003 pays a public holiday the employee does not work only where it would otherwise be a working day for them (an “otherwise working day”). Whether it is turns on the employment agreement, the roster and the pattern of work: a day on the roster is one; with no roster, a weekday the person has usually worked is one.

A public holiday not worked on an otherwise working day is paid its relevant daily pay: what the person would have been paid had they worked it. Where that cannot be told, or the daily pay varies within the pay period, the employer may pay the average daily pay instead: the gross earnings of the 52 weeks before, over the days worked (or on paid leave) in them.

Annual holidays are paid, for each week taken, at the greater of the ordinary weekly pay and the average weekly earnings: the gross earnings of the 12 months before, over 52. A day is its share of the usual week.

A public holiday worked is paid time and a half for the hours worked on it; and where it is an otherwise working day, the person also earns an alternative holiday: a whole day off in lieu, taken later.

Christmas Day, Boxing Day, New Year’s Day, 2 January, Waitangi Day and Anzac Day falling on a Saturday or a Sunday are moved to the Monday for someone for whom that day is not otherwise a working day (Mondayisation); where two fall on one weekend, the second moves to the Tuesday. Someone for whom the weekend day is a working day keeps the holiday on it: Christmas on a Saturday, for someone rostered on Saturdays, is on the Saturday, and Boxing Day on the Sunday still moves to the Tuesday.

Who uses it

Employers in New Zealand, and payroll providers for them; rostered staff and staff paid as they work alike.

How the recipe does it

Configuration only: the package (package.toml) has a layer, holidays-act, for everyone, keeping balances:

[[layer.step]]
id = "mondayise"
uses = "standard/substitute_day_unless_scheduled"
params = { holidays = ["christmas", "boxing-day", "new-year", "day-after-new-year", "waitangi-day", "anzac-day"] }
[[layer.step]]
id = "split-at-midnight"
uses = "standard/attribute"
params = { mode = "split" }
[[layer.step]]
id = "public-holiday-worked"
uses = "standard/premium"
params = { holidays = true, counts = ["work"], category = "public_holiday_worked" }
[[layer.step]]
id = "public-holiday-not-worked"
uses = "standard/holiday_pay_otherwise_working"
params = { category = "public_holiday_pay" }
[[layer.step]]
id = "alternative-holiday"
uses = "standard/alternative_holiday"
params = { category = "alternative_holiday_earned" }
[[layer.step]]
id = "wages"
uses = "standard/earnings"
params = { rate = "pay", measure = "wages", premiums = { work = 100, public_holiday_worked = 150, public_holiday_pay = 100 } }
[[layer.step]]
id = "earn-alternative-holiday"
uses = "standard/accrue"
params = { category = "alternative_holiday", earn = "1h", per = "1h", counts = ["alternative_holiday_earned"] }
  • substitute_day_unless_scheduled Mondayises the holidays it names: one on a Saturday or Sunday the person has no shift on moves to the next weekday no other holiday takes, as every one of them would move; one on a day with a shift on the roster stays there. It runs before anything reads the calendar, so every step after it sees the holiday where it is observed.
  • Shifts are cut at midnight (attribute, split): the hours worked on a public holiday are the holiday’s own, whichever day the shift started. New Zealand has no statutory overtime, so nothing else counts by the workday.
  • holiday_pay_otherwise_working decides, for a holiday not worked, whether it is an otherwise working day: a shift on the roster that day; or, with none, its weekday worked in at least at_least (7) of the weeks (13) weeks before it (the decision made on the pattern of work). It pays the hours the person would have worked, in public_holiday_pay (a category set up as paid and not worked): the rostered hours, or with no roster the hours those weekdays averaged. The step reads the 13 weeks back.
  • A holiday not an otherwise working day pays nothing.
  • The hours worked on a holiday go to public_holiday_worked, paid 150%.
  • alternative_holiday decides the same way whether a holiday worked is an otherwise working day, and where it is, adds a day (day, 8 hours) in alternative_holiday_earned, a category neither worked nor paid; accrue banks it in the accrual category alternative_holiday, which the leave category alternative_holiday_off draws on. A day off in lieu is taken whole (leave_increment of 8 hours, where the policy asks it).

Annual holidays are leave_weekly_pay, after the wages (which price no annual_holiday hours, so the leave is paid once):

[[layer.step]]
id = "annual-holiday-pay"
uses = "standard/leave_weekly_pay"
params = { category = "annual_holiday", pay = "wages", to = "annual_holiday_pay", rate = "pay", week_attribute = "ordinary_week" }

For each day of leave it compares the ordinary weekly pay (the usual week, from the employment attribute ordinary_week or 40 hours, at the pay rate) with the average weekly earnings (the wages of the 52 workweeks before the leave’s week, over 52, weeks with no pay counted as nothing), and pays the day’s hours as their share of the usual week at the greater, worked out from the year’s earnings, not a rounded average.

Which applies, relevant or average daily pay, is the employer’s call for each person; the recipe pays average daily pay to those whose employment attribute daily_pay_varies is true:

[[layer]]
id = "average-daily-pay"
order = 10
applies_to = "attributes.daily_pay_varies = true"
[[layer.step]]
id = "public-holiday-not-worked"
change = "disable"
[[layer.step]]
id = "public-holiday-average-daily-pay"
uses = "standard/holiday_average_daily_pay"
params = { pay = "wages", category = "public_holiday_pay" }

holiday_average_daily_pay decides the otherwise working day the same way, and pays, as money, the wages of the 52 workweeks before the holiday’s week (ctx:average_week) over the days in them with paid time: days worked and days of paid leave. It reads the year back from the ledgers before.

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 alternative_holiday: an accrual category. The recipe earns into it, takes from it or reads it.
  • A measure called wages: the amount the recipe adds up (money in a currency, or a count).

The scenarios show each as it was set up for them.

Parameters

StepParameterMeaning
mondayiseholidays; days (Saturday and Sunday)The holidays Mondayised, by their ids in the tenant’s list; the days they move off.
public-holiday-not-workedcategory; weeks (13), at_least (7), holidays (all)Where the holiday’s pay goes; the weeks the pattern is read over and how many of them make it; which holidays.
public-holiday-workedholidays, counts, categoryEvery holiday’s hours worked, to time and a half.
alternative-holidaycategory; day (8h), weeks, at_least, holidaysWhere the day earned goes, what it is kept as, and the otherwise working day’s test.
earn-alternative-holidaycategory, earn, per, countsThe alternative holidays’ balance, banked hour for hour.
public-holiday-average-daily-paypay, category; paid_weeks (52), includes, daysThe money averaged and where the pay goes; the weeks averaged, what money and which days count.
annual-holiday-paycategory, pay, to, rate, week_attribute; week (40h), weeks (52), includesThe leave, the money and where it goes, the rate, the usual week; the year’s weeks and what counts.
wagespremiumsEach category’s per cent of the ordinary rate.

What the scenarios show

  • a-rostered-public-holiday-not-worked-pays-the-rostered-day: Labour Day on the roster, not worked, paid its 8 rostered hours.
  • with-no-roster-the-pattern-of-work-decides: Mondays worked in 8 of the 13 weeks before: Labour Day paid the 6 hours they averaged.
  • a-holiday-on-a-day-not-usually-worked-pays-nothing: Tuesdays worked, not Mondays: Labour Day pays nothing.
  • a-public-holiday-worked-pays-time-and-a-half-and-a-day-in-lieu: Labour Day on the roster worked, 4 hours at 150% and an alternative holiday banked.
  • a-holiday-worked-on-a-day-not-usually-worked-earns-no-day-in-lieu: a night shift into Labour Day’s next day, its holiday hours at 150%, the hours after midnight ordinary, and no alternative holiday.
  • christmas-on-a-weekend-is-paid-on-the-monday-and-tuesday: rostered Monday to Friday, Christmas and Boxing Day 2027 are observed on Monday 27 and Tuesday 28 December, and paid.
  • a-saturday-worker-keeps-christmas-on-the-saturday: rostered Tuesday to Saturday, Christmas stays on the Saturday and Boxing Day moves to the Tuesday.
  • average-daily-pay-where-the-daily-pay-varies: Labour Day not worked paid the year’s earnings over its days, not the rostered hours.
  • annual-holidays-at-the-greater-of-ordinary-and-average-weekly-pay: a year with a large commission, a day of annual holiday at the average weekly earnings.

This is a simplified form of the Holidays Act’s rules, for illustration. Whether a day is an otherwise working day is decided on all the facts (the agreement, the roster as it stood before the holiday, the pattern of work, whether work was available), and what the 7 of 13 weeks here stands for is the employer’s own reading of the pattern. Whether a weekend day is a working day, for Mondayisation, is read from the roster (a shift that day): for someone with no roster who usually works weekends, keep the days they usually work on a roster. Relevant daily pay includes the allowances and productivity payments the day would have earned. The Act is under review. Check the rules where you operate before relying on them.

Get the recipe

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

new_zealand_holidays_act/package.toml
name = "new_zealand_holidays_act"
version = "1.0.0"
description = "New Zealand's Holidays Act 2003: a public holiday not worked paid as the day would have been, where it is an otherwise working day, decided by the roster or the pattern of work; one worked paid time and a half, with an alternative holiday on an otherwise working day."
# What the tenant must have set up for the recipe: the steps read these by name.
[needs]
accrual_categories = ["alternative_holiday"]
measures = ["wages"]
# Everyone. Each hour is the day's it is worked on: shifts are cut at
# midnight, so the hours worked on a public holiday are its own. A public
# holiday the person does not work is paid only where it is an otherwise
# working day for them: a shift on the roster that day, or its weekday
# worked in at least 7 of the 13 weeks before. It is paid as relevant
# daily pay: the rostered hours, or, with no roster, the hours those
# weekdays averaged, at the ordinary rate.
#
# Work on a public holiday is paid time and a half, and where the day is
# an otherwise working day earns an alternative holiday, a whole day off
# in lieu (kept as 8 hours in the alternative_holiday balance and taken as
# leave in alternative_holiday_off).
#
# Annual holidays, leave in annual_holiday, are paid at the greater of
# the ordinary weekly pay (the usual week, in the employment attribute
# ordinary_week, else 40 hours, at the pay rate) and the average weekly
# earnings (the gross earnings of the 52 weeks before, over 52), for the
# hours of the usual week taken.
#
# Christmas, Boxing Day, New Year's Day, 2 January, Waitangi Day and Anzac
# Day on a Saturday or a Sunday are moved to the Monday (or the Tuesday,
# where two fall on one weekend) for someone whose roster has no shift on
# that day; one rostered that day keeps the holiday on it (Mondayisation).
[[layer]]
id = "holidays-act"
settings = { accruals = { since = "2026-01-05" } }
[[layer.step]]
id = "mondayise"
uses = "standard/substitute_day_unless_scheduled"
params = { holidays = ["christmas", "boxing-day", "new-year", "day-after-new-year", "waitangi-day", "anzac-day"] }
[[layer.step]]
id = "split-at-midnight"
uses = "standard/attribute"
params = { mode = "split" }
[[layer.step]]
id = "public-holiday-worked"
uses = "standard/premium"
params = { holidays = true, counts = ["work"], category = "public_holiday_worked" }
[[layer.step]]
id = "public-holiday-not-worked"
uses = "standard/holiday_pay_otherwise_working"
params = { category = "public_holiday_pay" }
[[layer.step]]
id = "alternative-holiday"
uses = "standard/alternative_holiday"
params = { category = "alternative_holiday_earned" }
[[layer.step]]
id = "wages"
uses = "standard/earnings"
params = { rate = "pay", measure = "wages", premiums = { work = 100, public_holiday_worked = 150, public_holiday_pay = 100 } }
[[layer.step]]
id = "annual-holiday-pay"
uses = "standard/leave_weekly_pay"
params = { category = "annual_holiday", pay = "wages", to = "annual_holiday_pay", rate = "pay", week_attribute = "ordinary_week" }
[[layer.step]]
id = "earn-alternative-holiday"
uses = "standard/accrue"
params = { category = "alternative_holiday", earn = "1h", per = "1h", counts = ["alternative_holiday_earned"] }
# Where relevant daily pay cannot be told, or the daily pay varies within
# the pay period (the employment attribute daily_pay_varies): a public
# holiday not worked on an otherwise working day is paid its average
# daily pay instead, the gross earnings of the 52 weeks before over the
# days worked or on paid leave in them.
[[layer]]
id = "average-daily-pay"
order = 10
applies_to = "attributes.daily_pay_varies = true"
[[layer.step]]
id = "public-holiday-not-worked"
change = "disable"
[[layer.step]]
id = "public-holiday-average-daily-pay"
uses = "standard/holiday_average_daily_pay"
params = { pay = "wages", category = "public_holiday_pay" }

Scenarios

Each scenario gives a person’s punches and setup and the timecard they must produce, worked out with this package adopted (the format).

No roster, and Tuesdays worked, not Mondays: Labour Day is not an otherwise working day, and not worked it pays nothing
scenarios/a-holiday-on-a-day-not-usually-worked-pays-nothing.toml
description = "No roster, and Tuesdays worked, not Mondays: Labour Day is not an otherwise working day, and not worked it pays nothing"
punch = [
{ at = "2026-08-25 09:00", kind = "in" }, { at = "2026-08-25 15:00", kind = "out" },
{ at = "2026-09-01 09:00", kind = "in" }, { at = "2026-09-01 15:00", kind = "out" },
{ at = "2026-09-08 09:00", kind = "in" }, { at = "2026-09-08 15:00", kind = "out" },
{ at = "2026-09-15 09:00", kind = "in" }, { at = "2026-09-15 15:00", kind = "out" },
{ at = "2026-09-22 09:00", kind = "in" }, { at = "2026-09-22 15:00", kind = "out" },
{ at = "2026-09-29 09:00", kind = "in" }, { at = "2026-09-29 15:00", kind = "out" },
{ at = "2026-10-06 09:00", kind = "in" }, { at = "2026-10-06 15:00", kind = "out" },
{ at = "2026-10-13 09:00", kind = "in" }, { at = "2026-10-13 15:00", kind = "out" },
]
[policy]
zone = "Pacific/Auckland"
[[holiday]]
id = "labour-day"
name = "Labour Day"
month = 10
weekday = "monday"
n = 4
[[category]]
id = "public_holiday_pay"
worked = false
[[measure]]
id = "wages"
kind = "money"
currency = "NZD"
[[rate]]
kind = "pay"
amount = 2500
currency = "NZD"
[expect]
week = "2026-10-26"
allocations = []
quantities = []
No roster, and Tuesdays worked, not Mondays: Labour Day worked from 22:00 to 02:00 is paid time and a half for its 2 hours, to midnight, and earns no alternative holiday, not being an otherwise working day. The 2 hours after midnight are Tuesday's, ordinary
scenarios/a-holiday-worked-on-a-day-not-usually-worked-earns-no-day-in-lieu.toml
description = "No roster, and Tuesdays worked, not Mondays: Labour Day worked from 22:00 to 02:00 is paid time and a half for its 2 hours, to midnight, and earns no alternative holiday, not being an otherwise working day. The 2 hours after midnight are Tuesday's, ordinary"
punch = [
{ at = "2026-10-26 22:00", kind = "in" }, { at = "2026-10-27 02:00", kind = "out" },
]
[policy]
zone = "Pacific/Auckland"
[[holiday]]
id = "labour-day"
name = "Labour Day"
month = 10
weekday = "monday"
n = 4
[[category]]
id = "public_holiday_pay"
worked = false
[[category]]
id = "alternative_holiday_earned"
worked = false
paid = false
[[accrual_category]]
id = "alternative_holiday"
uses = ["alternative_holiday_off"]
[[measure]]
id = "wages"
kind = "money"
currency = "NZD"
[[rate]]
kind = "pay"
amount = 2500
currency = "NZD"
[expect.period]
day = "2026-10-26"
allocations = [
"2026-10-26 22:00-2026-10-27 00:00 public_holiday_worked 2.00",
"2026-10-27 00:00-02:00 work 2.00",
]
accruals = []
quantities = [
"2026-10-26 wages 75.00 NZD public_holiday_worked",
"2026-10-27 wages 50.00 NZD work",
]
Rostered Monday to Friday, at 25.00 an hour. Labour Day is worked from 09:00 to 13:00: its 4 hours at time and a half, 150.00, and, being an otherwise working day, an alternative holiday earned, a day kept as 8 hours
scenarios/a-public-holiday-worked-pays-time-and-a-half-and-a-day-in-lieu.toml
description = "Rostered Monday to Friday, at 25.00 an hour. Labour Day is worked from 09:00 to 13:00: its 4 hours at time and a half, 150.00, and, being an otherwise working day, an alternative holiday earned, a day kept as 8 hours"
punch = [
{ at = "2026-10-26 09:00", kind = "in" }, { at = "2026-10-26 13:00", kind = "out" },
]
[policy]
zone = "Pacific/Auckland"
[[shift_definition]]
id = "day"
start = "09:00"
end = "17:00"
days = ["monday", "tuesday", "wednesday", "thursday", "friday"]
[[holiday]]
id = "labour-day"
name = "Labour Day"
month = 10
weekday = "monday"
n = 4
[[category]]
id = "public_holiday_pay"
worked = false
[[category]]
id = "alternative_holiday_earned"
worked = false
paid = false
[[category]]
id = "alternative_holiday_off"
worked = false
[[accrual_category]]
id = "alternative_holiday"
uses = ["alternative_holiday_off"]
[[measure]]
id = "wages"
kind = "money"
currency = "NZD"
[[rate]]
kind = "pay"
amount = 2500
currency = "NZD"
[expect.period]
day = "2026-10-26"
allocations = [
"2026-10-26 untimed alternative_holiday_earned 8.00",
"2026-10-26 09:00-13:00 public_holiday_worked 4.00",
]
accruals = ["2026-10-26 alternative_holiday earned 8h"]
balances = { alternative_holiday = "8h" }
quantities = ["2026-10-26 wages 150.00 NZD public_holiday_worked"]
Rostered Monday to Friday from 09:00 to 17:00 at 25.00 an hour: Labour Day, Monday October 26, is on the roster, so it is an otherwise working day, and not worked it pays the day's 8 hours, 200.00
scenarios/a-rostered-public-holiday-not-worked-pays-the-rostered-day.toml
description = "Rostered Monday to Friday from 09:00 to 17:00 at 25.00 an hour: Labour Day, Monday October 26, is on the roster, so it is an otherwise working day, and not worked it pays the day's 8 hours, 200.00"
punch = [
{ at = "2026-10-27 09:00", kind = "in" }, { at = "2026-10-27 17:00", kind = "out" },
{ at = "2026-10-28 09:00", kind = "in" }, { at = "2026-10-28 17:00", kind = "out" },
]
[policy]
zone = "Pacific/Auckland"
[[shift_definition]]
id = "day"
start = "09:00"
end = "17:00"
days = ["monday", "tuesday", "wednesday", "thursday", "friday"]
[[holiday]]
id = "labour-day"
name = "Labour Day"
month = 10
weekday = "monday"
n = 4
[[category]]
id = "public_holiday_pay"
worked = false
[[measure]]
id = "wages"
kind = "money"
currency = "NZD"
[[rate]]
kind = "pay"
amount = 2500
currency = "NZD"
[expect]
week = "2026-10-26"
allocations = [
"2026-10-26 untimed public_holiday_pay 8.00",
"2026-10-27 09:00-17:00 work 8.00",
"2026-10-28 09:00-17:00 work 8.00",
]
quantities = [
"2026-10-26 wages 200.00 NZD public_holiday_pay",
"2026-10-28 wages 400.00 NZD work",
]
Rostered Tuesday to Saturday: Christmas 2027 on the Saturday is a working day for them and stays there, paid its 8 hours not worked; Boxing Day on the Sunday, not a working day, moves to Tuesday 28 December, rostered, and pays 8 hours; Monday 27 is no holiday
scenarios/a-saturday-worker-keeps-christmas-on-the-saturday.toml
description = "Rostered Tuesday to Saturday: Christmas 2027 on the Saturday is a working day for them and stays there, paid its 8 hours not worked; Boxing Day on the Sunday, not a working day, moves to Tuesday 28 December, rostered, and pays 8 hours; Monday 27 is no holiday"
[policy]
zone = "Pacific/Auckland"
[[shift_definition]]
id = "day"
start = "09:00"
end = "17:00"
days = ["tuesday", "wednesday", "thursday", "friday", "saturday"]
[[holiday]]
id = "christmas"
name = "Christmas Day"
month = 12
day = 25
[[holiday]]
id = "boxing-day"
name = "Boxing Day"
month = 12
day = 26
[[category]]
id = "public_holiday_pay"
worked = false
[[measure]]
id = "wages"
kind = "money"
currency = "NZD"
[[rate]]
kind = "pay"
amount = 2500
currency = "NZD"
[expect]
week = "2027-12-20"
allocations = ["2027-12-25 untimed public_holiday_pay 8.00"]
[expect.period]
day = "2027-12-27"
allocations = ["2027-12-28 untimed public_holiday_pay 8.00"]
4 weeks of 40 hours at 25.00 and a commission of 60,000.00: the year's gross earnings are 64,000.00, an average week of 1,230.76, more than the ordinary weekly pay of 1,000.00. A day of annual holiday, 8 hours of the 40-hour week, is paid at the average, 246.15, worked out from the year's earnings; the leave's hours are not paid again at the rate
scenarios/annual-holidays-at-the-greater-of-ordinary-and-average-weekly-pay.toml
description = "4 weeks of 40 hours at 25.00 and a commission of 60,000.00: the year's gross earnings are 64,000.00, an average week of 1,230.76, more than the ordinary weekly pay of 1,000.00. A day of annual holiday, 8 hours of the 40-hour week, is paid at the average, 246.15, worked out from the year's earnings; the leave's hours are not paid again at the rate"
punch = [
{ at = "2026-09-28 09:00", kind = "in" }, { at = "2026-09-28 17:00", kind = "out" },
{ at = "2026-09-29 09:00", kind = "in" }, { at = "2026-09-29 17:00", kind = "out" },
{ at = "2026-09-30 09:00", kind = "in" }, { at = "2026-09-30 17:00", kind = "out" },
{ at = "2026-10-01 09:00", kind = "in" }, { at = "2026-10-01 17:00", kind = "out" },
{ at = "2026-10-02 09:00", kind = "in" }, { at = "2026-10-02 17:00", kind = "out" },
{ at = "2026-10-05 09:00", kind = "in" }, { at = "2026-10-05 17:00", kind = "out" },
{ at = "2026-10-06 09:00", kind = "in" }, { at = "2026-10-06 17:00", kind = "out" },
{ at = "2026-10-07 09:00", kind = "in" }, { at = "2026-10-07 17:00", kind = "out" },
{ at = "2026-10-08 09:00", kind = "in" }, { at = "2026-10-08 17:00", kind = "out" },
{ at = "2026-10-09 09:00", kind = "in" }, { at = "2026-10-09 17:00", kind = "out" },
{ at = "2026-10-12 09:00", kind = "in" }, { at = "2026-10-12 17:00", kind = "out" },
{ at = "2026-10-13 09:00", kind = "in" }, { at = "2026-10-13 17:00", kind = "out" },
{ at = "2026-10-14 09:00", kind = "in" }, { at = "2026-10-14 17:00", kind = "out" },
{ at = "2026-10-15 09:00", kind = "in" }, { at = "2026-10-15 17:00", kind = "out" },
{ at = "2026-10-16 09:00", kind = "in" }, { at = "2026-10-16 17:00", kind = "out" },
{ at = "2026-10-19 09:00", kind = "in" }, { at = "2026-10-19 17:00", kind = "out" },
{ at = "2026-10-20 09:00", kind = "in" }, { at = "2026-10-20 17:00", kind = "out" },
{ at = "2026-10-21 09:00", kind = "in" }, { at = "2026-10-21 17:00", kind = "out" },
{ at = "2026-10-22 09:00", kind = "in" }, { at = "2026-10-22 17:00", kind = "out" },
{ at = "2026-10-23 09:00", kind = "in" }, { at = "2026-10-23 17:00", kind = "out" },
]
[policy]
zone = "Pacific/Auckland"
[[category]]
id = "annual_holiday"
worked = false
[[category]]
id = "public_holiday_pay"
worked = false
[[category]]
id = "alternative_holiday_earned"
worked = false
paid = false
[[accrual_category]]
id = "alternative_holiday"
uses = ["alternative_holiday_off"]
[[labor]]
workday = "2026-10-02"
measure = "wages"
quantity = 6000000
category = "commission"
recorded = "2026-10-02 17:00"
[[leave]]
id = "a1"
category = "annual_holiday"
days = { "2026-10-27" = "8h" }
recorded = "2026-10-01 09:00"
[[approval]]
subject = "leave:a1:2026-10-27"
stage = "approval"
decision = "approve"
recorded = "2026-10-01 10:00"
[[measure]]
id = "wages"
kind = "money"
currency = "NZD"
[[rate]]
kind = "pay"
amount = 2500
currency = "NZD"
[expect]
week = "2026-10-26"
allocations = ["2026-10-27 untimed annual_holiday 8.00"]
quantities = ["2026-10-27 wages 246.15 NZD annual_holiday_pay"]
Someone whose daily pay varies, at 25.00 an hour, rostered Monday to Friday: Labour Day, not worked, is paid its average daily pay, the weeks before's 3,550.00 over their 20 days, 177.50, as money, not the roster's 8 hours
scenarios/average-daily-pay-where-the-daily-pay-varies.toml
description = "Someone whose daily pay varies, at 25.00 an hour, rostered Monday to Friday: Labour Day, not worked, is paid its average daily pay, the weeks before's 3,550.00 over their 20 days, 177.50, as money, not the roster's 8 hours"
punch = [
{ at = "2026-09-28 08:00", kind = "in" }, { at = "2026-09-28 18:00", kind = "out" },
{ at = "2026-09-29 08:00", kind = "in" }, { at = "2026-09-29 14:00", kind = "out" },
{ at = "2026-09-30 08:00", kind = "in" }, { at = "2026-09-30 14:00", kind = "out" },
{ at = "2026-10-01 08:00", kind = "in" }, { at = "2026-10-01 14:00", kind = "out" },
{ at = "2026-10-02 08:00", kind = "in" }, { at = "2026-10-02 14:00", kind = "out" },
{ 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 14:00", kind = "out" },
{ at = "2026-10-07 08:00", kind = "in" }, { at = "2026-10-07 14:00", kind = "out" },
{ at = "2026-10-08 08:00", kind = "in" }, { at = "2026-10-08 14:00", kind = "out" },
{ at = "2026-10-09 08:00", kind = "in" }, { at = "2026-10-09 14:00", kind = "out" },
{ at = "2026-10-12 08:00", kind = "in" }, { at = "2026-10-12 18:00", kind = "out" },
{ at = "2026-10-13 08:00", kind = "in" }, { at = "2026-10-13 14:00", kind = "out" },
{ at = "2026-10-14 08:00", kind = "in" }, { at = "2026-10-14 14:00", kind = "out" },
{ at = "2026-10-15 08:00", kind = "in" }, { at = "2026-10-15 14:00", kind = "out" },
{ at = "2026-10-16 08:00", kind = "in" }, { at = "2026-10-16 14:00", kind = "out" },
{ at = "2026-10-19 08:00", kind = "in" }, { at = "2026-10-19 16:00", kind = "out" },
{ at = "2026-10-20 08:00", kind = "in" }, { at = "2026-10-20 16:00", kind = "out" },
{ at = "2026-10-21 08:00", kind = "in" }, { at = "2026-10-21 16:00", kind = "out" },
{ at = "2026-10-22 08:00", kind = "in" }, { at = "2026-10-22 16:00", kind = "out" },
{ at = "2026-10-23 08:00", kind = "in" }, { at = "2026-10-23 16:00", kind = "out" },
]
[policy]
zone = "Pacific/Auckland"
[[employment]]
effective = "2026-01-05"
kind = "hired"
attributes = { daily_pay_varies = true }
[[shift_definition]]
id = "day"
start = "08:00"
end = "16:00"
days = ["monday", "tuesday", "wednesday", "thursday", "friday"]
[[holiday]]
id = "labour-day"
name = "Labour Day"
month = 10
weekday = "monday"
n = 4
[[category]]
id = "public_holiday_pay"
worked = false
[[category]]
id = "alternative_holiday_earned"
worked = false
paid = false
[[accrual_category]]
id = "alternative_holiday"
uses = ["alternative_holiday_off"]
[[measure]]
id = "wages"
kind = "money"
currency = "NZD"
[[rate]]
kind = "pay"
amount = 2500
currency = "NZD"
[expect]
week = "2026-10-26"
allocations = []
quantities = ["2026-10-26 wages 177.50 NZD public_holiday_pay"]
Rostered Monday to Friday: Christmas 2027 on the Saturday and Boxing Day on the Sunday are not working days, so they are observed on Monday 27 and Tuesday 28 December, rostered days, and not worked each pays its 8 hours
scenarios/christmas-on-a-weekend-is-paid-on-the-monday-and-tuesday.toml
description = "Rostered Monday to Friday: Christmas 2027 on the Saturday and Boxing Day on the Sunday are not working days, so they are observed on Monday 27 and Tuesday 28 December, rostered days, and not worked each pays its 8 hours"
[policy]
zone = "Pacific/Auckland"
[[shift_definition]]
id = "day"
start = "09:00"
end = "17:00"
days = ["monday", "tuesday", "wednesday", "thursday", "friday"]
[[holiday]]
id = "christmas"
name = "Christmas Day"
month = 12
day = 25
[[holiday]]
id = "boxing-day"
name = "Boxing Day"
month = 12
day = 26
[[category]]
id = "public_holiday_pay"
worked = false
[[measure]]
id = "wages"
kind = "money"
currency = "NZD"
[[rate]]
kind = "pay"
amount = 2500
currency = "NZD"
[expect]
week = "2027-12-27"
allocations = [
"2027-12-27 untimed public_holiday_pay 8.00",
"2027-12-28 untimed public_holiday_pay 8.00",
]
[expect.period]
day = "2027-12-25"
allocations = []
No roster: Mondays were worked, 6 hours each, in 8 of the 13 weeks before Labour Day, so it is an otherwise working day, and not worked it pays the 6 hours those Mondays averaged, 150.00
scenarios/with-no-roster-the-pattern-of-work-decides.toml
description = "No roster: Mondays were worked, 6 hours each, in 8 of the 13 weeks before Labour Day, so it is an otherwise working day, and not worked it pays the 6 hours those Mondays averaged, 150.00"
punch = [
{ at = "2026-08-24 09:00", kind = "in" }, { at = "2026-08-24 15:00", kind = "out" },
{ at = "2026-08-31 09:00", kind = "in" }, { at = "2026-08-31 15:00", kind = "out" },
{ at = "2026-09-07 09:00", kind = "in" }, { at = "2026-09-07 15:00", kind = "out" },
{ at = "2026-09-14 09:00", kind = "in" }, { at = "2026-09-14 15:00", kind = "out" },
{ at = "2026-09-21 09:00", kind = "in" }, { at = "2026-09-21 15:00", kind = "out" },
{ at = "2026-09-28 09:00", kind = "in" }, { at = "2026-09-28 15:00", kind = "out" },
{ at = "2026-10-05 09:00", kind = "in" }, { at = "2026-10-05 15:00", kind = "out" },
{ at = "2026-10-12 09:00", kind = "in" }, { at = "2026-10-12 15:00", kind = "out" },
]
[policy]
zone = "Pacific/Auckland"
[[holiday]]
id = "labour-day"
name = "Labour Day"
month = 10
weekday = "monday"
n = 4
[[category]]
id = "public_holiday_pay"
worked = false
[[measure]]
id = "wages"
kind = "money"
currency = "NZD"
[[rate]]
kind = "pay"
amount = 2500
currency = "NZD"
[expect]
week = "2026-10-26"
allocations = ["2026-10-26 untimed public_holiday_pay 6.00"]
quantities = ["2026-10-26 wages 150.00 NZD public_holiday_pay"]