Analysis of internal demand curve of energy storage