The rule
California pays time and a half for hours over 8 in a workday and over 40 in a workweek, and double time for hours over 12 in a workday.
On the seventh day in a row worked in one workweek, the first 8 hours are paid at time and a half and the rest at double time.
Weekly overtime counts only the hours not already paid as daily overtime, so no hour is paid twice. The calculator takes Monday as the first day of the workweek.