Tax planning for retirement: 3 factors to consider