in section 217(c), paragraph (1) shall not apply to such disposition (or cessation). (5) Joint returns In the case of a credit allowed under subsection (a) with respect to a joint return, half of such credit shall be treated as having been allowed to each individual filing such return for purposes of this subsection. (6) Return requirement If the tax imposed by this chapter for the taxable year is increased under this subsection, the taxpayer shall, notwithstanding section 6012, be required to file a return with respect to the taxes imposed under this subtitle. (7) Recapture period For purposes of this subsection, the term recapture period means the 4 taxable years beginning with the taxable year in which the purchase of the principal residence for which a credit is allowed under subsection (a) was made. (g) Election To treat purchase in prior year In the case of a purchase of a principal residence after December 31, 2022, a taxpayer may elect to treat such purchase as made on December 31 of the calendar year preceding such purchase for purposes of this section (other than subsections (b)(4), (c), and (h)). (h) Transfer of credit (1) In general Subject to such regulations and other guidance as the Secretary determines necessary, a taxpayer may elect that the credit which would (but for this subsection) be allowed to such taxpayer with respect to the purchase of a principal residence shall be allowed to the mortgage lender with respect to such purchase and not to such taxpayer. (2) Eligible entity For purposes of this subsection, the term eligible entity means, with respect to the purchase of the principal residence for which the credit is allowed under subsection (a), the mortgage lender which provides the mortgage to the taxpayer and has— (A) registered with the Secretary for purposes of this paragraph, at such time, and in such form and manner, as the Secretary may prescribe, (B) prior to the election described in paragraph (1) and not later than at the time of such purchase, disclosed to the taxpayer making