How to calculate carbon index for solar power generation