Each state has a utility commission that dictates the retail rate paid to solar customers. In California, it's cost i.e if I pay 8 cents a kilowatt-hour and I have a kilowatt hour excess, I get 8 cents. In addition to state, Tesla Powerwall confounds the equation.