If you’re thinking of buying a home this year, be sure to factor in the long-term benefits of homeownership.