“Rent is throwing money away” and “always buy” are both too simple. The real answer depends on how long you’ll stay, your rate, and what rent would cost you over the same years. Adjust every number below to your situation.
“Owning cost” nets out the equity you’d build and the value growth against what you paid in interest, tax, insurance, maintenance and round-trip closing costs. It ignores mortgage-interest tax effects and assumes you invest what you’re not paying in rent nowhere else, it’s a comparison tool, not a financial plan. Every rate above is yours to change; nothing here is today’s actual rate or a promise about future prices.