Marginal cost of energy storage