Not taking deprecation in account when buying a car makes the calculation way off. It even applies when you own it the whole way from the factory to the junkyard.
A rule of thumb that I use is that the value of the car halves every fourth year. So if I buy a car for $20 000 I can count on a monthly cost of $208 for the deprecation the first four years, that exceeds all other costs of ownership in my case.