They are two different things.
The 5% calculation is a great comparison tool if you are considering buying an investment property. You can compare a 5 bed detached house with a flat over shop.
It doesn't tell you what you are getting for your investment if you have borrowings.