Code learning for post-retirement income