Every afternoon the day-ahead prices for the next ~36 hours are fetched, and the
cheapest hours are picked as charging blocks.
At those times the inverter is switched to keep batteries charged; when the
block ends it drops back to optimised, so the battery covers the expensive hours.
The saving figure uses a round-trip efficiency allowance β a battery gives back
less than it takes, so cheap energy is only worth buying if the expensive hour is
far enough above it.