Most people assume a salary means no overtime. I did too, until I started building the overtime pages on mytimecardcal.com and had to work out what the law actually says. A salary is just a way of paying someone. Whether overtime is owed depends on something else entirely: whether the worker is exempt or non-exempt.
Exempt is a legal test, not a pay method
Under the US Fair Labor Standards Act, a worker is only exempt from overtime if they pass three tests: they are paid on a salary basis, they earn above a set threshold, and their job duties match one of the exempt categories, such as executive, administrative, or professional work. Fail any one of those and the worker is non-exempt, even if they are paid a flat salary every month.
That catches more people than you would think. A supervisor who spends most of the day doing the same hands-on work as everyone else can be salaried and still legally owed overtime. When I added this to the calculator, it was the first time I had to model a worker type where the pay method and the overtime rule point in different directions.
The maths: the regular rate moves every week
For an hourly worker the maths is simple. The hourly rate is fixed, and overtime is that rate times 1.5. For a salaried non-exempt worker, the hourly rate has to be worked out fresh each week, because the salary is fixed but the hours are not.
The formula looks like this:
- Weekly salary divided by hours actually worked that week gives the regular rate.
- Hours over 40 are paid at 1.5 times that regular rate.
Take a worker on $800 a week who works 50 hours. The regular rate is $800 / 50 = $16.00. The ten overtime hours are paid at time and a half, $24.00 an hour, but $16.00 of that is already covered by the salary. So the extra amount owed is the half-time premium: 10 x $8.00 = $80. Total pay for the week: $880.
Work 60 hours the next week and the regular rate drops to $13.33, because the same $800 now spreads over more hours.
What the code has to handle
The straightforward version is easy: take the salary, take the hours, divide. The real work is in the edges.
First, the salary has to be converted to a weekly figure. Someone paid $4,000 a month is not on $1,000 a week; the conversion is monthly pay times 12, divided by 52, which gives $923.08.
Second, the salary is only assumed to cover the hours it was agreed to cover. If the employer and worker agreed the salary covers 40 hours, and the worker does 50, the regular rate is the salary divided by 40, not 50, and the overtime hours are paid at the full 1.5x. There is a third variant, the fluctuating workweek method, where the salary is understood to cover however many hours are worked. It is legal only under strict conditions, and it pays less overtime, so I coded it as a separate, clearly labelled option rather than the default.
Third, bonuses and shift differentials feed into the regular rate too. A non-discretionary bonus has to be spread across the weeks it covers before the overtime rate is worked out.
The lesson I took from it
The pattern I keep hitting on this site is that the simple-sounding calculators are the ones with the hidden branches. A time card is just subtraction until a shift crosses midnight. An overtime calculator is just multiplication until the worker is salaried.
If you are salaried and regularly working past 40 hours, check whether your role actually passes the duties test. The salary on your contract does not settle the question. The maths does, one week at a time.