https://smartasset.com/mortgage/rent-vs-buy#TOwKpPvyLu
There are a lot of things online to help you with this. This is just one that you can plug in variables and play around with. I put in your location and rent and some basic information along with the standard defaults. It looks like about 6 years would be the breakeven time.
For long term financial success you should always have a paid for place to live. The earlier in life you do that the sooner you can make your extra money from not having a mortgage or rent payment work for you.
Pretty much if you are going to stay in the house for 5-8 years you are better off buying.
A house should not really be looked at as an investment because you have to live somewhere -- you are NOT in the real estate business and trying to flip houses. If it turns out that you are in an exceptional market and you decide to sell because it has over-appreciated, then that is just gravy.
But you have to be prepared to buy a house. Make sure you have the best credit rating you can get, in order to get the best interest rate possible. Have the most down payment ready that you can. The downpayment should be at least 20% to avoid the extra charge of PMI. Try to afford a 30-year loan and get a 15-year loan. If not, pay extra payments in order to pay it off way early. You want to be rent/mortgage-free as early as possible in life. This frees up more of your income as you get into your prime earning years.
Do not overbuy on a house. Too many people will under-rent, or at least rent according to their income. But when they go to buy a house they will overbuy. They will almost automatically buy the most house that they can get approved for. This is completely bad logic if you are planning for financial success long term.
If your mortgage will be way more than your rent -- you are very likely buying too much house.
If you are in an area where you are 'lucky or fortunate' to have great rent and in an area where houses are 'over-priced' -- you really should consider moving. Or at least commuting into town a bit.
If you are just liking the 'convenience or laziness' that comes with renting -- you should really, really consider how this affects you financially long term.
Already people do not plan well enough to get old and retire. Having a rent/mortgage going into retirement is detrimental to a person's finances.
You do not want that much of your income always going to this much of a bill every single month for your entire life!
There may be people that are very successful financially that are long term renters. But it should be pointed out that an overwhelming amount of successful folks -- and I mean an overwhelming amount of them -- have a paid for house! Most do it way earlier in life than others.
Research this and think about it. Play around with some of these calculators online. Talk to people that are successful that you know and trust.
Think about what you can do with that amount of extra money a month -- or, more specifically, what that amount of money can do for you long term!
Once you are a millionaire -- because with a decent job, income, solid investing and a paid for house, you will be -- then you can decide that you have plenty of disposable income for the rest of your life. Then you can decide to rent just for the sake of convenience. But I almost guarantee your mindset will change by then.
I say buy a reasonably priced house soon and work towards getting it paid off! Good luck!