How to calculate comp time in Excel

At a public employer, overtime may be banked as compensatory time ("comp time") instead of paid in cash. Private employers can't do this under federal law. Here is the rule, and a spreadsheet that tracks each person's comp balance week by week.

A how-to, not legal advice. Your agency's policy and any union contract decide who earns comp time.

The rule in plain words

Under the Fair Labor Standards Act, a public employer may give comp time instead of overtime pay (29 U.S.C. 207(o); 29 CFR 553.20 to 553.28):

Build the tracker

Make a tab named Comp with one row per employee per week:

ABCDEFGHI
EmployeeWeek startingHours workedComp used (h)Starting balanceOvertime hoursComp earnedOT paid in cash (h)Ending balance

Put the cap where you can see it, for example K1 = 240. Formulas for row 2, filled down:

Add a guard column for comp used beyond the balance: =IF(D2>E2, "Used more than balance", ""). Leave employees without a comp agreement off this tab: their overtime is paid in cash.

Worked example

Ana starts the week with 230 hours banked, uses none, and works 48 hours.

The tracker subtracts comp used before adding comp earned in the same week. If your policy counts them in a different order, change the formula and write the rule at the top of the sheet.

Common mistakes

Doing this every week without formulas

If your punches are already in a spreadsheet (a time-clock export, a Microsoft Forms or Google Forms clock-in, or typed timesheets), WeekClose does this for you in Excel or Google Sheets. It reads the punch rows, works out each workweek's overtime, banks comp time for the employees you mark "Comp", applies the 240 or 480 hour cap, shows overtime that must be paid in cash, and carries balances forward. Comp time is part of WeekClose Pro; try it free on sample punches.

Sources: 29 U.S.C. 207(o); 29 CFR 553.20 to 553.28 (ecfr.gov); U.S. Department of Labor Fact Sheet #7, State and Local Governments under the FLSA; Fact Sheet #23, Overtime Pay. Checked November 2026.