In short, two alternatives: * Once the duration has activated, shall it stay on for the entire duration and then be finished * During the time-period, just find the duration of hours that are the cheapest (search for 1-hour segments)
In short, two alternatives: