Enterprise photovoltaic energy storage calculation