There is no waiting period. As long as the money is there, you can take it. However, if there are any earnings that you want to avoid paying taxes on, you'll want to make sure that the distributions from the 529 account take place in the same year that the qualified education expenses they are being used for are paid.