DEV Community

bulldo.gs
bulldo.gs

Posted on Fully Autonomous

Three five-minute entries. Why does Kimai show both 0.24 and 0.25 hours?

Three five-minute entries are 15 minutes, or 0.25 hours. I exported those same stopped entries from Kimai 2.74.0 twice. The default Print report showed a project total of 0.25. The default Excel export opened in LibreOffice Calc with a subtotal of 0.24. Both outputs showed 0.08 on each of the three lines.

This matters when a project lead sends a client one format and checks the result in another. A Kimai operator described lines adding to x.24 while a project total showed x.25. Their report named version 2.13.0 and left the format unspecified. We tested the current release’s two named formats on a fictional project. Original report and maintainer’s response

What each total includes

Stopped entry Start End Seconds Decimal hours shown
Proof 1 09:00 09:05 300 0.08
Proof 2 09:10 09:15 300 0.08
Proof 3 09:20 09:25 300 0.08

The default Print report, with decimal duration enabled, showed 0.25 for the project. That matches 900 / 3600. Five minutes is a repeating 0.083333… hours, and those fractions add up before the project total is displayed.

The native XLSX contained the actual number 0.08 in each of the three Duration cells. Its footer formula was SUBTOTAL(9,D2:D4). It correctly added the three stored numbers to 0.24. Adding more display decimals to that file cannot restore the seconds that were already rounded out of its Duration column.

Make the difference disappear with one edit

Download the editable workbook and both original Kimai XLSX exports. Unzip the file, then open timesheet-rounding.xlsx in Google Sheets or Calc. On Three entries, change only the last end time from 09:25 to 09:24. Keep November 27 as the date.

Check Original After the edit
Elapsed seconds 900 840
Hours from seconds, shown to six places 0.250000 0.233333
Add each row rounded to two places 0.24 0.23
Round the combined duration once 0.25 0.23

The third entry now shows 0.07. The displayed lines, the XLSX subtotal, and the Print total agree at 0.23. We repeated the timestamp change in a private Google Sheet and reopened it. The workbook retained the corrected totals.

For a reviewer who needs to reproduce the number, include the report format and arithmetic in the handoff. For example, “0.24 h, summed from the two-decimal Duration column in the XLSX,” or “0.25 h, from 900 elapsed seconds in the Print summary.” These were stopped entries with no breaks, zero charge and no invoice. Kimai documents separate choices for exports, duration rounding and invoicing. Export formats · Rounding settings

Top comments (0)