Calculate the difference between renting and buying a home.
When you rent a home, you're paying someone else money every month to stay in their home. Unless you have a rent-to-own contract with your landlord, you'll never get any of your monthly payment back and you'll never own that home that you're paying for every month. You're essentially paying someone else's mortgage.
Owning your home means every month you're paying into a property that'll be yours free and clear at the end of the loan term. Later on, you can sell your home and get a return on your investment in addition to getting a place to live for years. Buying a home is a good investment. Renting is usually a waste of money. The only real advantage to renting a home is that repairs and maintenance are someone else's responsibility.