Skip to content

Overtime across a joint employment

The rule

A worker employed by two related employers (two companies of one group, or a staffing agency and its client as joint employers) may be owed overtime on the hours of both together: 30 hours for one and 16 for the other is 46 hours in the week, 6 of them overtime. Each employment keeps its own records, pay calendar and thresholds; the rule that combines them is the policy’s.

Who uses it

Groups of companies whose entities share staff, and staffing agencies with joint-employment arrangements, where the overtime law looks at the hours the person worked for the related employers together.

How the recipe does it

Each record is one employment of one employer, and the records of one human share a worker id. Configuration only: a package (package.toml) of one layer with a weekly standard threshold that counts the worker’s other records too (others), on a layer whose eligibility picks the employer that pays the combined overtime (employer = <id>), so the other employer’s records do not pay it too.

[[layer]]
id = "acme-ca-joint"
applies_to = "employer = acme-ca"
[[layer.step]]
id = "joint"
uses = "standard/threshold"
params = { window = "week", over = "40h", to = "overtime", others = ["acme-us"] }

The other records’ time worked over the workweek counts toward the limit, as they were last worked out: time in the categories set up as worked, so their leave and holiday pay are not hours worked; only this record’s latest time past it moves to overtime, so what the others paid stays theirs. When another record’s time changes, this record is worked out again.

Parameters

ParameterMeaning
window"week": the workweek.
overThe hours a week may have, both employments together: "40h".
toThe category overtime goes to.
otherstrue for every other record of the worker, or the employers whose records count.

What the scenarios show

  • together-past-forty: 24 hours here and 20 for the other employer is 44: this record’s last 4 hours are overtime.
  • alone-is-under-forty: no other record: 24 hours, none over.

Whether hours for two employers are counted together depends on the law where the person works and how the employers are related; check before using it.

Get the recipe

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

joint_employment_overtime/package.toml
name = "joint_employment_overtime"
version = "1.0.0"
description = "One worker employed by two employers of the tenant who count hours together; overtime past 40 hours a week counts both employments' time."
# acme-ca pays the overtime of a worker's combined week: time past 40
# hours, counting the worker's time on their acme-us record too.
[[layer]]
id = "acme-ca-joint"
applies_to = "employer = acme-ca"
[[layer.step]]
id = "joint"
uses = "standard/threshold"
params = { window = "week", over = "40h", to = "overtime", others = ["acme-us"] }

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 record of no other employment: its 24 hours are under 40, none over
scenarios/alone-is-under-forty.toml
description = "A record of no other employment: its 24 hours are under 40, none over"
punch = [
{ at = "2026-10-05 08:00", kind = "in" }, { at = "2026-10-05 16:00", kind = "out" },
{ at = "2026-10-07 08:00", kind = "in" }, { at = "2026-10-07 16:00", kind = "out" },
{ at = "2026-10-09 08:00", kind = "in" }, { at = "2026-10-09 16:00", kind = "out" },
]
[policy]
zone = "America/Chicago"
[person]
employer = "acme-ca"
[expect]
week = "2026-10-05"
allocations = [
"2026-10-05 08:00-16:00 work 8.00",
"2026-10-07 08:00-16:00 work 8.00",
"2026-10-09 08:00-16:00 work 8.00",
]
24 hours for acme-ca, and 20 that week for acme-us (as its record was last worked out): 44 together, so this record's last 4 hours are overtime; the other employer's time the next week does not count
scenarios/together-past-forty.toml
description = "24 hours for acme-ca, and 20 that week for acme-us (as its record was last worked out): 44 together, so this record's last 4 hours are overtime; the other employer's time the next week does not count"
punch = [
{ at = "2026-10-05 08:00", kind = "in" }, { at = "2026-10-05 16:00", kind = "out" },
{ at = "2026-10-07 08:00", kind = "in" }, { at = "2026-10-07 16:00", kind = "out" },
{ at = "2026-10-09 08:00", kind = "in" }, { at = "2026-10-09 16:00", kind = "out" },
]
[policy]
zone = "America/Chicago"
[person]
employer = "acme-ca"
worker = "w-17"
[[person.other]]
person = "us-4471"
employer = "acme-us"
days = { "2026-10-06" = { work = "10h" }, "2026-10-08" = { work = "8h", overtime = "2h" }, "2026-10-13" = { work = "8h" } }
[expect]
week = "2026-10-05"
allocations = [
"2026-10-05 08:00-16:00 work 8.00",
"2026-10-07 08:00-16:00 work 8.00",
"2026-10-09 08:00-12:00 work 4.00",
"2026-10-09 12:00-16:00 overtime 4.00",
]