"Renting is throwing money away" isn't always true — and neither is "always buy." Compare the two over the number of years you actually plan to stay.
Simplified estimate. It doesn't model selling costs, the return you'd earn investing your down payment instead, or tax effects. Use it to sanity-check timing, not as financial advice.