Peak and valley energy storage