After you file

In truth, the IRS can take as long as it wants/needs.  But it must pay you interest after a certain point.