@oceanwanderer You should have 6 months expenses in an emergency fund.
Your scenario is a mismanagement of one’s finances where you spend more than you can afford on a new car.
If you really have only $30k in savings then you likely only need to spend $5-10k on a car.