Skip to main content
function tieredOvertimeMultiplier(tiers, opts?): RuleEntry;
Applies multiple overtime thresholds with increasing multipliers.

Parameters

tiers
\[{ after: number; factor: number; }, ...{ after: number; factor: number }[]\]
required

Returns

RuleEntry Each tier applies only to the hours between its threshold and the next. Tiers must be sorted by threshold ascending.

Example

// Hours 0-40: base rate
// Hours 40-48: 1.5x
// Hours 48+: 2.0x
tieredOvertimeMultiplier([
  { after: 40, factor: 1.5 },
  { after: 48, factor: 2.0 },
])