Cost-effective use of solar energy