The internet is full of rent-vs-buy debates. The math comes down to a single number — and a handful of caveats.