Planning and calculation for renewable energy sources