Skip to content

Fluctuating workweek

The rule

An employee whose hours go up and down from week to week is paid a fixed salary that covers every hour worked, however many. The salary already pays each hour’s straight time, so overtime is half the regular rate on top, and the regular rate is that week’s salary over that week’s hours: the longer the week, the lower the rate.

A salary of 1000.00 and a 50-hour week: the regular rate is 20.00 and the 10 overtime hours are paid 100.00 on top. The same salary and 55 hours: the rate is 18.1818 and the 15 hours are paid 136.36.

Who uses it

Employers with salaried non-exempt staff whose hours vary, where the law allows the method and the employee has agreed to it.

How the recipe does it

Configuration only: the package (package.toml) has one layer. The salary is entered each week as money in the category salary; the regular_rate step has no hourly rate, only the money it includes.

[[layer]]
id = "fluctuating-workweek"
[[layer.step]]
id = "weekly"
uses = "standard/threshold"
params = { over = "40h", to = "overtime", window = "week" }
[[layer.step]]
id = "half-time"
uses = "standard/regular_rate"
params = { measure = "wages", includes = ["salary"], premiums = { overtime = 50 } }

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 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

ParameterMeaning
measureThe money measure the salary is entered in and the premium added in.
includes["salary"]: the salary is the week’s straight-time pay.
premiums{ overtime = 50 }: half the regular rate on top.

What the scenarios show

  • a-long-week-pays-half-time-on-the-salary: 1000.00 for 50 hours; 100.00 on top for the 10 overtime hours.
  • the-more-hours-the-lower-the-rate: 55 hours pay 136.36 on top; a 35-hour week has no overtime, the salary is its pay.

This is a common way companies implement the fluctuating workweek; check the rules where you operate. It needs a clear agreement, hours that truly fluctuate, and a salary that never comes to less than the minimum wage for the hours worked. Several states (California, Alaska, Pennsylvania among them) do not allow it.

Get the recipe

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

fluctuating_workweek/package.toml
name = "fluctuating_workweek"
version = "1.0.0"
description = "A fixed weekly salary covers every hour of the week, however many; hours past 40 are paid half the week's regular rate on top: the salary over the hours worked."
# What the tenant must have set up for the recipe: the steps read these by name.
[needs]
measures = ["wages"]
# Everyone on the plan: past 40 hours a week is overtime. The salary,
# entered each week as money in the category salary, is the straight time
# for every hour; each overtime hour is paid half the regular rate on top.
[[layer]]
id = "fluctuating-workweek"
[[layer.step]]
id = "weekly"
uses = "standard/threshold"
params = { over = "40h", to = "overtime", window = "week" }
[[layer.step]]
id = "half-time"
uses = "standard/regular_rate"
params = { measure = "wages", includes = ["salary"], premiums = { overtime = 50 } }

Scenarios

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

A salary of 1000.00 a week, and a week of 50 hours: the regular rate is 1000.00 over 50 hours, 20.00, and the 10 overtime hours are paid half of it on top, 100.00. The salary already paid their straight time
scenarios/a-long-week-pays-half-time-on-the-salary.toml
description = "A salary of 1000.00 a week, and a week of 50 hours: the regular rate is 1000.00 over 50 hours, 20.00, and the 10 overtime hours are paid half of it on top, 100.00. The salary already paid their straight time"
punch = [
{ at = "2026-10-05 07:00", kind = "in" }, { at = "2026-10-05 17:00", kind = "out" },
{ at = "2026-10-06 07:00", kind = "in" }, { at = "2026-10-06 17:00", kind = "out" },
{ at = "2026-10-07 07:00", kind = "in" }, { at = "2026-10-07 17:00", kind = "out" },
{ at = "2026-10-08 07:00", kind = "in" }, { at = "2026-10-08 17:00", kind = "out" },
{ at = "2026-10-09 07:00", kind = "in" }, { at = "2026-10-09 17:00", kind = "out" },
]
[policy]
zone = "America/Chicago"
pay_periods = { every_days = 7, from = "2026-10-05" }
[[measure]]
id = "wages"
kind = "money"
currency = "USD"
[[labor]]
workday = "2026-10-05"
measure = "wages"
quantity = 100000
category = "salary"
recorded = "2026-10-05 00:00"
[expect]
week = "2026-10-05"
quantities = ["2026-10-05 wages 1000.00 USD salary", "2026-10-09 wages 100.00 USD overtime"]
The same 1000.00 salary and a week of 55 hours: the regular rate falls to 18.1818 an hour, and the 15 overtime hours are paid half of it on top, 136.36, rounded down to the cent. A week of 35 hours has no overtime: the salary is the week's pay
scenarios/the-more-hours-the-lower-the-rate.toml
description = "The same 1000.00 salary and a week of 55 hours: the regular rate falls to 18.1818 an hour, and the 15 overtime hours are paid half of it on top, 136.36, rounded down to the cent. A week of 35 hours has no overtime: the salary is the week's pay"
punch = [
{ at = "2026-10-05 07:00", kind = "in" }, { at = "2026-10-05 18:00", kind = "out" },
{ at = "2026-10-06 07:00", kind = "in" }, { at = "2026-10-06 18:00", kind = "out" },
{ at = "2026-10-07 07:00", kind = "in" }, { at = "2026-10-07 18:00", kind = "out" },
{ at = "2026-10-08 07:00", kind = "in" }, { at = "2026-10-08 18:00", kind = "out" },
{ at = "2026-10-09 07:00", kind = "in" }, { at = "2026-10-09 18:00", kind = "out" },
{ at = "2026-10-12 07:00", kind = "in" }, { at = "2026-10-12 14:00", kind = "out" },
{ at = "2026-10-13 07:00", kind = "in" }, { at = "2026-10-13 14:00", kind = "out" },
{ at = "2026-10-14 07:00", kind = "in" }, { at = "2026-10-14 14:00", kind = "out" },
{ at = "2026-10-15 07:00", kind = "in" }, { at = "2026-10-15 14:00", kind = "out" },
{ at = "2026-10-16 07:00", kind = "in" }, { at = "2026-10-16 14:00", kind = "out" },
]
[policy]
zone = "America/Chicago"
pay_periods = { every_days = 14, from = "2026-10-05" }
[[measure]]
id = "wages"
kind = "money"
currency = "USD"
[[labor]]
workday = "2026-10-05"
measure = "wages"
quantity = 100000
category = "salary"
recorded = "2026-10-05 00:00"
[[labor]]
workday = "2026-10-12"
measure = "wages"
quantity = 100000
category = "salary"
recorded = "2026-10-12 00:00"
[expect.period]
day = "2026-10-05"
quantities = [
"2026-10-05 wages 1000.00 USD salary",
"2026-10-09 wages 136.36 USD overtime",
"2026-10-12 wages 1000.00 USD salary",
]