mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 20:42:43 +00:00
The day count was the length of the labelled run inside the calendar grid, so the same day read as day 11 over a month and day 23 over three: the run was cut off at the window's edge rather than at the cycle's start. That was a latent contract question while every caller asked for the same ninety days, and it stopped being latent when the month grid began reading its own month, which is thirty days by construction. The verdict now anchors on the period start the record holds and falls back to walking the grid only when no caller supplied one, so the ring's arcs stay grid-derived (they are about what can be drawn) while the day is about what the person logged. The overdue ceiling then measures the real elapsed count too. Covers D-list edge 15, both shapes: a window that clips the run and a window that excludes the cycle start altogether.