How to plan your spending through the 3 stages of retirement