Compare the true cost of renting against buying over the years you expect to stay put.
Compares the cost of each over the period rather than the monthly payment. Buying looks worse over short periods because the upfront costs have not yet been outlived.