feat: split overlapping minutes between projects

Five minutes with two projects open was counted as five for each, so
Wednesday's columns summed to 18h against 13h10 of wall clock and no
column said which number to trust.

Each slot's minutes are now divided evenly among the projects live in
it, largest remainder over whole minutes, so the columns add up to the
total exactly. That ratio is what a submission scales the user's stated
day length by.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
naps62
2026-08-14 22:05:13 +00:00
parent 439d3601b4
commit b485cee634
2 changed files with 39 additions and 13 deletions
+7 -2
View File
@@ -48,8 +48,13 @@ time that project was actually active, plus wall-clock `total`, the day's
`window`, and `flags`. That table is the deliverable — paste it as-is rather
than restating it in prose.
`total` is the union of active slots, so on a day with parallel sessions it is
less than the row sum. Both numbers are true; they answer different questions.
Overlap is divided, not double-counted: five minutes with two projects open is
five minutes of the day, half to each. The project columns therefore add up to
`total`, which is wall-clock presence.
That division is also the ratio to submit with. The user gives the day's real
total; you split it by these proportions. Never submit the measured numbers as
the hours unless the user says they are right.
Paste it as plain markdown in the reply. Never wrap it in a code fence: a
fence shows the raw pipes and dashes instead of a rendered table.