Battery Energy Storage Formula