What are the commercial energy storage investment calculation formulas