; and (2) by adding at the end the following new subparagraph: (B) Carryback and carryforward of unused credits (i) In general If the credit described in subparagraph (A) exceeds the limitation imposed by section 26(a) for the taxable year reduced by the sum of the credits allowable under subpart A (determined without regard to the credit described in subparagraph (A)), such excess shall be— (I) carried back to the taxable year preceding the taxable year in which such amount arose, and (II) carried forward to the 5 taxable years following the taxable year in which such amount arose. (ii) Limitation For purposes of clause (i), the amount of credit carried back or forward under such clause— (I) shall be taken into account as a credit described in subparagraph (A) for the taxable year to which carried (except, in the case of a carryback, such amount shall not be taken into account for purposes of applying clause (i) to such taxable year), and (II) such amounts shall be treated as used on a first-in, first-out basis, determined on the basis of the taxable year in which such amount arose. . (c) Assignment of credit to financing entity Section 30D(f) of such Code is amended by adding at the end the following new paragraph: (8) Credit may be assigned to financing entity (A) In general In the case of a credit determined under subsection (a) with respect to a new qualified plug-in electric drive motor vehicle or a new battery electric motor vehicle, the taxpayer to whom such credit would (but for this paragraph) be allowed under subsection (a) for any taxable year may assign such credit to the person who financed the purchase (or lease of at least 2 years) of such vehicle. Any person to whom such credit is assigned under the preceding sentence shall be treated for purposes of this title as the taxpayer who placed such vehicle in service. (B) Disclosure requirement Subparagraph (A) shall not apply with respect to any vehicle unless the person to whom the credit is assigned clearly discloses in writing to the taxpayer the