You have to buy or build the qualifying home before October 1 of the year after the year of withdrawal.