Return on Investment (ROI) is calculated as sum of all returns over the system life divided by the energy system net cost (after all purchase incentives).
For residential (non-business) applications we assume utility savings are in Gross Income dollars ("pre-tax" or what you earned). For business (commercial) applications we assume utility savings result a lower expense write-off against income tax liabilities.
Go to www.solar-estimate.org