Contributions returned before due date of return
Paragraph (1) does not apply to the distribution of any contribution paid during a taxable year to an individual retirement account or for an individual retirement annuity if—
(A) such distribution is received on or before the day prescribed by law (including extensions of time) for filing such individual’s return for such taxable year,
(B) no deduction is allowed under section 219 with respect to such contribution, and
(C) such distribution is accompanied by the amount of net income attributable to such contribution.
In the case of such a distribution, for purposes of section 61, any net income described in subparagraph (C) shall be deemed to have been earned and receivable in the taxable year in which such contribution is made.