The net present value of buying, owning, and selling a home; vs. renting, is shown below, with months of ownership on the x-axis.
A negative number means you are better off renting!
Five scenarios are prepopulated with some simple cases. Add your own data to see what's right for you.