ENERGY STORAGE CALCULATION BATTERY ATTENUATION