HOW TO CALCULATE THE CAPACITY OF AN ENERGY STORAGE SYSTEM