Skip to content

Weekend premium

The rule

Hours worked on the weekend are paid at a premium rate (time and a quarter, or a fixed amount more per hour). Which hours are weekend hours follows the workday: a shift belongs to the workday it starts in, unless the policy splits overnight shifts at midnight.

Who uses it

Retail, hospitality, healthcare and manufacturing employers who need weekend cover, and many collective agreements and industry awards that set Saturday and Sunday rates.

How the recipe does it

Configuration only: the package (package.toml) has one layer for everyone with the standard premium step, on the weekend’s days:

[[layer]]
id = "weekend"
[[layer.step]]
id = "weekend"
uses = "standard/premium"
params = { weekdays = ["saturday", "sunday"], counts = ["work"], category = "weekend" }

On a workday whose weekday is listed, all its time in the counts categories moves to category.

A Friday night shift running into Saturday is Friday’s workday, so none of it is weekend time, and a Sunday night shift running into Monday is all weekend time. To count each hour on the day it is worked, a layer adds standard/attribute with mode = "split" before it: the shift is cut at midnight and its Saturday hours are Saturday’s.

[[layer]]
id = "split-at-midnight"
order = 20
[[layer.step]]
id = "split"
uses = "standard/attribute"
params = { mode = "split" }
before = "weekend"

Parameters

ParameterMeaning (default)
weekdaysThe weekdays that pay the premium (["saturday", "sunday"]).
categoryWhere weekend time goes.
countsThe categories moved (["work"]: overtime stays overtime).

What the scenarios show

  • saturday-and-sunday-workdays: a Friday night shift into Saturday is not weekend time; Saturday’s shift is; a Sunday night shift into Monday is, all of it; Monday’s is not.
  • split-at-midnight-the-saturday-hours-are-weekend: split at midnight, the Saturday hours of a Friday night shift (New Year’s Day 2027) are weekend time and its Friday hours are not.

This is a common way companies implement a weekend premium; check the rules where you operate. Weekend rates usually come from a contract or an industry award, which also says whether they stack with overtime.

Get the recipe

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

weekend_premium/package.toml
name = "weekend_premium"
version = "1.0.0"
description = "Time worked on a Saturday or Sunday workday is paid in a weekend premium category."
# Everyone: the regular time of a Saturday or Sunday workday goes to
# weekend; overtime stays overtime.
[[layer]]
id = "weekend"
[[layer.step]]
id = "weekend"
uses = "standard/premium"
params = { weekdays = ["saturday", "sunday"], counts = ["work"], category = "weekend" }

Scenarios

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

Friday's night shift runs into Saturday but is Friday's workday: no premium. Saturday's day shift is all weekend time. Sunday's night shift, 23:00 into Monday, is Sunday's workday: all of it is weekend time, Monday morning's hours too. Monday's day shift is not
scenarios/saturday-and-sunday-workdays.toml
description = "Friday's night shift runs into Saturday but is Friday's workday: no premium. Saturday's day shift is all weekend time. Sunday's night shift, 23:00 into Monday, is Sunday's workday: all of it is weekend time, Monday morning's hours too. Monday's day shift is not"
punch = [
{ at = "2026-10-09 22:00", kind = "in" }, { at = "2026-10-10 06:00", kind = "out" },
{ at = "2026-10-10 14:00", kind = "in" }, { at = "2026-10-10 22:00", kind = "out" },
{ at = "2026-10-11 23:00", kind = "in" }, { at = "2026-10-12 07:00", kind = "out" },
{ at = "2026-10-12 15:00", kind = "in" }, { at = "2026-10-12 23:00", kind = "out" },
]
[policy]
zone = "America/Chicago"
[expect]
week = "2026-10-05"
allocations = [
"2026-10-09 22:00-2026-10-10 06:00 work 8.00",
"2026-10-10 14:00-22:00 weekend 8.00",
"2026-10-11 23:00-2026-10-12 07:00 weekend 8.00",
]
[expect.period]
day = "2026-10-12"
allocations = ["2026-10-12 15:00-23:00 work 8.00"]
With overnight shifts split at midnight (standard/attribute, split), Friday January 1, 2027's night shift is two workdays: its 2 Friday hours are regular and its 6 Saturday hours, Saturday January 2's, are weekend time
scenarios/split-at-midnight-the-saturday-hours-are-weekend.toml
description = "With overnight shifts split at midnight (standard/attribute, split), Friday January 1, 2027's night shift is two workdays: its 2 Friday hours are regular and its 6 Saturday hours, Saturday January 2's, are weekend time"
punch = [
{ at = "2027-01-01 22:00", kind = "in" }, { at = "2027-01-02 06:00", kind = "out" },
]
[policy]
zone = "America/Chicago"
# Overnight shifts split at midnight, before the weekend premium: each
# hour is in the workday it is worked in.
[[layer]]
id = "split-at-midnight"
order = 20
[[layer.step]]
id = "split"
uses = "standard/attribute"
params = { mode = "split" }
before = "weekend"
[expect]
week = "2026-12-28"
days = { "2027-01-01" = "2h", "2027-01-02" = "6h" }
allocations = [
"2027-01-01 22:00-2027-01-02 00:00 work 2.00",
"2027-01-02 00:00-06:00 weekend 6.00",
]