electricity_bill(units) computing the total, slab by slab (the same marginal structure as income tax).electricity_bill(250)
1900
300 + 500 + 1050 for the consumed slabs, +50 fixed.
Reuse the band-walking pattern.
min(remaining, slab_width) per slab.