Oregon's daily overtime rule: 10 hours a day, but only in mills and factories
Most US states only pay overtime after 40 hours in a week. Oregon is one of the few that also has a daily rule — but it does not cover everyone, and that is exactly what makes it easy to get wrong in a calculator.
Most US states only pay overtime after 40 hours in a week. Oregon is one of the few that also has a daily rule — but it does not cover everyone, and that is exactly what makes it easy to get wrong in a calculator.
The rule, in plain words
In Oregon, an employee who works in a mill, a factory, or a manufacturing establishment gets time and a half for every hour over 10 in a single day. That is the daily rule. It sits alongside the normal weekly rule: over 40 hours in a week is overtime too.
The important part is the scope. A shop assistant working 11 hours gets nothing extra under this rule; a factory worker working the same hours gets one hour at time and a half.
How I coded it
When I built the Oregon page on mytimecardcal.com, I gave every state its own rule object instead of one shared overtime function. Oregon's looks roughly like this:
const oregon = {
dailyThreshold: 10,
weeklyThreshold: 40,
dailyAppliesTo: ['mill', 'factory', 'manufacturing'],
rate: 1.5
};
The calculator asks the worker whether they work in a mill, factory, or manufacturing establishment. If the answer is no, the daily rule is switched off and only the 40-hour weekly rule runs. If the answer is yes, both rules run — and that is where the maths gets careful.
The double-counting trap
The trap is counting the same hour twice. Take a factory worker who does five 11-hour days: 55 hours in the week. The daily rule gives 5 overtime hours (one per day). The weekly rule gives 15 (55 minus 40). You cannot just add them and pay 20 overtime hours, because 5 of those hours are already counted.
The fix I use is simple and it is the same one I use on every state page with a daily rule: work out the daily overtime first, take those hours out of the week's total, then apply the weekly rule to what is left.
function splitOvertime(days, rule) {
let dailyOt = 0;
let total = 0;
for (const hours of days) {
total += hours;
if (rule.dailyApplies && hours > rule.dailyThreshold) {
dailyOt += hours - rule.dailyThreshold;
}
}
const weeklyOt = Math.max(0, total - dailyOt - rule.weeklyThreshold);
return { dailyOt, weeklyOt };
}
For that 55-hour week the result is 5 daily overtime hours and 10 weekly overtime hours — 15 in total, with no hour counted twice. The regular hours come out at 40, which is what you would expect.
Why the narrow scope matters
I checked the rule against Oregon's own labour pages rather than trusting a summary table. The daily rule is written for mills, factories, and manufacturing establishments, and the wording has stayed narrow on purpose. There are also separate rules in Oregon for other groups — agricultural workers and some others have their own thresholds — so the page says plainly that the daily rule shown is the manufacturing one, and that other workers fall back to the weekly rule.
That honesty is part of the calculator. A page that pretends one rule covers everyone is worse than a page that says "this rule does not apply to you". The worker who reads it should leave knowing which rule is theirs, not just a bigger number.
The lesson for the other 50 states
Oregon taught me that state overtime is not one rule with 50 values. It is 51 different rule sets, and the differences are in the scope — who it applies to — as much as in the numbers. California has daily and double-time rules that apply widely. Alaska has a daily rule too. Nevada's only kicks in below a pay threshold. Most states have no daily rule at all.
One shared function with a threshold parameter cannot hold all of that. One rule object per state, each with its own scope flags, can. That is the design the whole site runs on, and Oregon is the page that proved I needed it.
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.