If you get all the subsidies, you're looking at less than $2,500 per year. I think that most people will save $500+ on gas and oil changes and PG&E rates, so for the three years, let's say that you pay $6,000 all in.
Essentially any new car will lose $6,000 in value over three years. You could lower your TCO by buying used, for sure, but if you care about worn finishes, little QOL things like bluetooth audio and reasonably good climate control, and lower risk of inconvenient maintenance, then I think the Leaf is pretty amazingly good.
IF you can deal with a 90 mile range. That's the big killer. But as a second car or for some people, it's kind of amazing.