Taxable year.

(iv) Taxable year. The taxable year from which a deficit is allocated under this paragraph, and the taxable year to which such deficit is allocated to reduce earnings and profits, shall be the taxable year of the foreign corporation ending with or within the taxable year of the United States shareholder described in subparagraph (1)(i) of this paragraph.