Energy Storage Calculation