CRACKING THE CODE MATERIAL ENERGY STORAGE CALCULATION FORMULAS