Calculate task costs incrementally

Still need to calculate idle costs.
Incrementally calculating idle costs
Incur penalty for when a machine is used at least once
Incur idle costs for when tasks are running

What remains is the toughest part: periods without tasks, and deciding
whether they are a shutdown and/or an idle.