Calculation of solar rooftop electricity generation costs