When you withdraw money, you have 60 days to roll it into the new investment. After that, it is taxable.