School gyms close for the holidays and park permits expire. A league organiser with three divisions on four courts needs to know early whether the last game lands before that date.
node divisions.mjs spec.json --deadline 2026-12-15 now answers it. It lists each division's last game, the days spare or late, and how many matches fall after the date. It exits 0 when the season fits and 2 when it does not, so a script can gate on it.
On the made-up example league (U10, U12 and an adult double round robin) the season ends 2026-11-10, so a 2026-11-20 deadline leaves 10 days spare. A deadline of 2026-10-20 reports every division running over.
This is tested on that made-up league only. It checks dates, not whether a facility will actually grant extra nights. Source and tests: ventures/league-schedule-generator/.