CALCULATING ENERGY STORAGE CAPACITY REQUIREMENTS