How to assess your affordability when taking out a mortgage