When I started building the California overtime calculator, I did not start with the calculator. I started with a question people actually type into a search box: when does California pay double time?
Most overtime rules in the United States are simple. Work more than 40 hours in a week and the extra hours pay time and a half. California is different, and that difference is the whole reason the state has its own page on the site. California counts hours per day as well as per week, and once a day gets long enough, the rate jumps again.
Here is the rule in plain words. In California, the first 8 hours in a workday pay the normal rate. Hours 9 to 12 pay time and a half. Anything past 12 hours in a single day pays double time. That is the headline rule, and it is the one most people get wrong, because they assume overtime only starts after 40 hours in the week.
Then there is the seventh day. If you work seven days in one workweek, the first 8 hours on that seventh day pay time and a half, and anything past 8 hours pays double time. The seventh day rule catches people out because a normal six-day week with long days can already be expensive, and the seventh day adds another layer on top.
Building a calculator for this meant splitting every day into bands instead of just adding up the week. My code takes each day's hours, works out how many fall in the normal band, how many in the time-and-a-half band, and how many in the double-time band, then adds the bands across the week. The weekly 40-hour rule still applies on top: if the normal-rate hours across the week pass 40, the extra ones move up to time and a half. The tricky part is making sure an hour is never counted twice, once for the daily rule and once for the weekly rule.
I tested it with a worked example before I trusted it. Take a worker on $20 an hour who works 13 hours a day, Monday to Friday, and nothing at the weekend. Each day gives 8 hours at $20, 4 hours at $30, and 1 hour at $40. That is $160 plus $120 plus $40, which is $320 a day, or $1,600 for the week. The weekly rule does not add anything here, because the normal-rate hours only reach 40 exactly. Change the schedule to six 10-hour days and the weekly rule starts to matter, because the normal hours hit 48 and the last 8 move up a band. Writing the numbers out by hand first is what showed me where the code was double-counting.
The other thing I had to get right was the wording. A calculator is useless if the person using it does not trust the number, so the page says plainly what it covers and what it does not. It is a general guide to California daily and weekly overtime, not legal advice, and it does not cover every exception. Agriculture, live-in domestic workers, and some union agreements have their own rules, and the calculator says so rather than pretending one formula fits everyone.
So why build a whole state page around one keyword? Because the people searching for double time in California are usually in the middle of a real pay dispute or a confusing pay stub. They do not want a lecture on labour law. They want to type in their hours and see whether the double-time band applies to them. If the calculator answers that question clearly, it has done its job, whether the person found it through search or through a link.
If you want to try the numbers yourself, the California overtime calculator is on mytimecardcal.com — put in your hours and your rate, and it splits each day into the normal, time-and-a-half, and double-time bands so you can see exactly where the money comes from.