@jcboy,
In my past, I've owned a few new cars and only once have I leased a car (2000 Toyota Camry from '99- '02).
For example (Scenario 1 - Lease), I paid about $310 per month for 36 months, including initial deposits, fees taxes, etc. At the end of the lease, I turned the car in and then had nothing to show (no equity) and no car to drive unless I wanted to buy it from the leasing co, but at an overinflated premium that was higher than the same 3-yr old used car with 36K miles. I won't go into the details of how the leasing company inspected the car and wanted to deduct for scratches and tiny dents...etc to the finish.
I laid out in lease fees and related expenses of about $11,500. The proper maintenance work was done and I'll ignore listing here any of those expenses that were out-of pocket as being not significant for comparison.
No tax write-off was available to us or possible as it was our personal car so no tax advantage or implication.
I can't list the differences of the sales tax on buying vs leasing so dismiss this as sundry and insignificant.
However I calculated (Scenario #2) buying that same car valued at $21,000, paying a $1200 sales tax. It would have then cost me approx. $350 per month using a 4-yr loan (using whatever the going new-car-loan-rate was (very little outlay of needed liquid cash), using a 20% ($4400) down as an initial deposit.
So financing of 80% of the loan note for about $17500 total. At the 3-yr-point of ownership (for comparison sake to lease term) I owned approx. 66% of the car in equity, give or take. Value of the car at that 3-yr point was about $16, 500 (very high resale of Camry). Monthly layout was about $350 for 36 month or approx. $12600..maint about $750 over 3 yrs. Approx totl of outlay is $13400. Value of car about $16.5k, Remaining loan amount at the 3-yr-point about $3.7k to pay over 12 more months.
As for your warranty running out on a financed or purchased car, you can always buy an extended warrantees from reputable places (from decent dealers of even a 3rd party). I don't always recommend that as good option or value... there's a lot of variability - especially important on drive-train and other key coverage areas, etc. ) but they may offer some folks some needed pillow comfort.
Smarter people than I can correct my math and my logic but as I figured it, on paper at the end of 3 yrs, I calculate I gained/retained some equity...not sure the exact number) of this owned car that still had one year left on the loan. I recall that I paid off approx 66% of the loan of $17.5k or laid out about $13,000 but had owned a car still worth $17k .
At end of lease I may have laid out less cash per month but then I still had to rebuy next vehicle.
FWIW, Consumer Reports does an excellent comparison model (better than I did) on buying vs leasing. I recall an ownership scenario which returns you better investment if you keep and maintain a vehicle for 8-10 years vs leasing it. However, if you an earlier trader of a purchased new vehicle...say every 3 yrs....the figures would be drastically upside down.
Sorry for my convoluted example. Using a Toyota Camry 'cause in 2000 that car had a very good example of a car with very low cost of maintenance.