How to Optimize Billing Costs and Shut Down Machines When Not in Use?