Times in, hours out
Tracking hours worked is a subtraction that goes wrong at midnight; this sheet gets it right in every row.
A time in Excel is a fraction of a day, so hours are (out − in) × 24 minus the break. If
out is earlier than in, the shift crossed midnight and the formula adds a day first. The free
Week sheet does that for seven days with a daily overtime threshold; the Pro Log does it per
block of work with a project attached.
Pro: what to bill
Each project on Setup has a rate and a billable flag. The Log multiplies hours by the rate
per row; Projects sums per project; Week sums per week with overtime above the weekly
threshold and counts the distinct days you worked — a SUMPRODUCT that weights each row by
one over how many rows share its date, explained on the Formulas sheet.
Checked, not just built
The build recalculates the workbook in LibreOffice and in a second, independent engine on the sample log and compares fifteen values — hours
for a row with a break, totals, billable amount, a project’s hours and amount, a week’s
hours and distinct days, the free file’s daily overtime — against numbers computed outside Excel.