When you get a mortgage you have to decide how long you need to pay it all off. Here is how to work out which is cheapest and how to make sure you can afford the term you choose.