Doing some car math for myself and making sure i making the right call!

i have 30k to work with over my emergency fund that i wont be touching. I could put all 30k down on a loan and get my payment to 300-350/mo on a few different vehicles. Id like to stay around this figure if possible.

however here is option 2… lease the car instead.
the total cost of a 2 year lease on the vehicle is around 13700. this is (1) with down payment or (2) no down payment and high monthly. (both scenarios are the same and the monthly cost doesn’t matter at all… read below)
- i can set aside that exact amount in a HYSA thats earning 3-4%. over the course of those 24 payments slow drawing this account. i can create something like $500 in profit if i just don’t touch it for 24 months.
- the rest of the 16k can go into a market investment account that can grow over those 24 months, potentially making $3k give or take if i just don’t touch it.
- after 24 months the car will have a residual value of around 42000.
- if i count my monthly paycheck surplus over all bills i should have about +$24k in my bank account at the end of the lease. (over emergency fund)
- drop a simple 20k down payment on the residual and buyout the lease (if i really like the vehicle) and have my 350ish payment until the loan ends. hoping rates go down!
- essentially i keep most of my money in a state where I control it at all times and its growing instead of being tied up in a car. if S hits the Fan, then i still have an entire YEAR of emergency fund if i count ALL cash i have on hand in various places.
- the lease is completely self-sustained, and i don’t actually have to consider the payments at all in my monthly budget.

if you read all that and like my idea let me know! or if my plan has some big holes let me know! This is my second car, so the mileage for me doesn’t really matter at all ( if i started to max out mileage i can just use my other car). my other car is fully paid off already.