MICROGRID ENERGY STORAGE RATIO CALCULATION