HOW TO CALCULATE ENERGY DENSITY