Retirement at 40 or 50: This is how it can work