How to calculate the discharge energy storage density