For example, lets look at the Tesla Powerwall numbers. The Powerwall warranty covers 85% of capacity with 740 cycles in the first two years -- whichever comes first. Then it covers 66% capacity with 1,087 cycles in three years, and finally, it covers 54% of capacity for 2,368 cycles in five years. http://www.greentechmedia.com/articles/read/is-teslas-powerw...
Running the numbers for the Powerwall, 85%, 66%, and 54% of 7kWh is 5.4, 4.6, and 3.8kWh respectively.
(740cycles x 5.4kWh) + (1087cycles x 4.6kWh) + (2368cycles x 3.8kWh) = 17994.6kWh
Thus the cost per kWh stored is
$3000/17994.6kWh = 16.7 cents/kWh.
Not included is the shipping and installation cost, which could add another $300 - $500, which would run
$3300/17994.6kWh = 18.3 cent/kWh.