By Iqbal Hussain, Founder and calculator developer · Formulas checked against worked examples · Last updated
CSV Hours Calculator
Total hours from uploaded time records.
How CSV Hours Calculator Works?
The CSV Hours Calculator works by reading a comma-separated values (CSV) file, detecting the start, end, or duration columns, and totaling hours per row and per group.
- 1
Upload or paste the CSV
Use a file with a header row, for example date,name,start,end,break.
- 2
Map the columns
Select which columns hold start time, end time, break, and grouping fields.
- 3
Read the totals
The calculator shows hours per row, per person, and a file total.
CSV Hours Calculator Formula
The CSV Hours formula is Row Hours = (End − Start) − Break for each record, and Group Total = Σ Row Hours by group.
- startᵢ, endᵢ, breakᵢ: values from row i.
- g: grouping value, such as a name or project.
Example: a 120-row CSV with 3 employees returns 3 group totals, such as Alex 162.5 h, Sam 158 h, Lee 171.25 h, and a file total of 491.75 hours.
CSV Hours Calculator Conversion Table
The CSV Hours conversion table shows a sample CSV of 6 records with the calculated hours.
| date | name | start | end | break | hours |
|---|---|---|---|---|---|
| 2026-03-02 | Alex | 08:00 | 16:30 | 30 | 8.00 |
| 2026-03-02 | Sam | 09:00 | 17:30 | 45 | 7.75 |
| 2026-03-03 | Alex | 08:15 | 17:00 | 30 | 8.25 |
| 2026-03-03 | Sam | 22:00 | 06:00 | 30 | 7.50 |
| 2026-03-04 | Alex | 07:45 | 16:15 | 30 | 8.00 |
| 2026-03-04 | Sam | 09:00 | 13:00 | 0 | 4.00 |
What is CSV Hours Calculator?
The CSV Hours Calculator is a file-based tool that totals hours from uploaded time records in CSV format.
Time clocks, project tools, and spreadsheets all export CSV files. The CSV Hours Calculator reads those files directly, so a 500-row export becomes per-person totals without spreadsheet formulas.
What are the uses of CSV Hours Calculator?
There are 5 main uses of the CSV Hours Calculator, including time clock exports, tracker exports, and payroll preparation.
-
Time clock exports
Payroll staff total a 2-week time clock export per employee.
-
Tracker exports
Freelancers total a time tracker CSV per client.
-
Payroll preparation
Admins total hours before importing into payroll.
-
Migration checks
Teams compare totals between an old and a new system.
-
Research logs
Researchers total participant session hours from a CSV.
CSV Hours Calculator FAQ
How do I use the CSV Hours Calculator?
1. Upload or paste the CSV: Use a file with a header row, for example date,name,start,end,break. 2. Map the columns: Select which columns hold start time, end time, break, and grouping fields. 3. Read the totals: The calculator shows hours per row, per person, and a file total.
What formula does the CSV Hours Calculator use?
The CSV Hours formula is Row Hours = (End − Start) − Break for each record, and Group Total = Σ Row Hours by group. In short: rowᵢ = ((endᵢ − startᵢ) mod 24h) − breakᵢ; total(g) = Σ rowᵢ where groupᵢ = g.
Can you show a worked example?
a 120-row CSV with 3 employees returns 3 group totals, such as Alex 162.5 h, Sam 158 h, Lee 171.25 h, and a file total of 491.75 hours.