Planning for retirement can be complicated, as anyone approaching the end of their working life will tell you.