In the case of any taxpayer who enters into a written binding contract before May 1, 2010, to close on the purchase of a principal residence before July 1, 2010, and who purchases such residence before October 1, 2010, paragraph (1) shall be applied by substituting “October 1, 2010” for “May 1, 2010”.