Calculation formula for solar cells