Costs and savings of renewable energy