Yup! Personally I'd never buy a new car, but they aren't really that bad of a deal. I will say though, there's an uncertainty that exists that wasn't apparent in my simplification. Transmission failing out at 9 years would basically make your car useless, but if you had warranty you'd be good.
When you consider the time value of money it becomes an excellent deal.