be treated as a credit allowance date with respect to any qualified CDFI investment if such date occurs after any date on which— (i) the financial institution in which such CDFI investment is made ceases to be a qualified community development financial institution, or (ii) such investment is redeemed, repurchased, or otherwise repaid by the qualified community development financial institution which issued such investment. (b) Qualified CDFI investment For purposes of this section— (1) In general The term qualified CDFI investment means any investment in a qualified community development financial institution if— (A) such investment is acquired by the taxpayer at its original issue (directly or through an underwriter) solely in exchange for cash, (B) such investment is in the form of— (i) non-voting stock or an equity equivalent investment, (ii) an interest in an entity which is a partnership, or (iii) an obligation described in section 279(b)(2) which has a term of 10 years or longer, (C) such investment has not been designated as a qualified equity investment for purposes of section 45D, and (D) such investment is designated for purposes of this section by the qualified community development financial institution. Such term shall not include any investment issued by a qualified community development financial institution more than 5 years after the date that such financial institution receives an allocation under subsection (d)(3). Any allocation not used within such 5-year period may be reallocated by the Secretary under subsection (d). (2) Limitation The maximum amount of investments issued by a qualified community development financial institution which may be designated under paragraph (1)(D) by such financial institution shall not exceed the portion of the limitation amount allocated under subsection (d) to such financial institution. (3) Treatment of subsequent purchasers The term qualified CDFI investment includes any investment which would (but for paragraph (1)(A)) be a qualified CDFI investment in