In the case of a controlled foreign corporation, subpart F income does not include any item of income from sources within the United States which is effectively connected with the conduct by such corporation of a trade or business within the United States unless such item is exempt from taxation (or is subject to a reduced rate of tax) pursuant to a treaty obligation of the United States. For purposes of this subsection, any exemption (or reduction) with respect to the tax imposed by section 884 shall not be taken into account.
For purposes of subsection (a), the subpart F income of any controlled foreign corporation for any taxable year shall not exceed the earnings and profits of such corporation for such taxable year.
The amount included in the gross income of any United States shareholder under section 951(a)(1)(A) for any taxable year and attributable to a qualified activity shall be reduced by the amount of such shareholder’s pro rata share of any qualified deficit.
For purposes of this subparagraph, the term “qualified insurance company” means any controlled foreign corporation predominantly engaged in the active conduct of an insurance business in the taxable year and in the prior taxable years in which the deficit arose.
For purposes of this paragraph, the term “qualified financial institution” means any controlled foreign corporation predominantly engaged in the active conduct of a banking, financing, or similar business in the taxable year and in the prior taxable year in which the deficit arose.
An election may be made under this clause to have section 953(a) applied for purposes of this title without regard to the same country exception under paragraph (1)(A) thereof. Such election, once made, may be revoked only with the consent of the Secretary.
In the case of an affiliated group of corporations (within the meaning of section 1504 but without regard to section 1504(b)(3) and by substituting “more than 50 percent” for “at least 80 percent” each place it appears), no election may be made under subclause (I) for any controlled foreign corporation unless such election is made for all other controlled foreign corporations who are members of such group and who were created or organized under the laws of the same country as such controlled foreign corporation. For purposes of clause (v), in determining whether any controlled corporation described in the preceding sentence is a qualified insurance company, all such corporations shall be treated as 1 corporation.
A controlled foreign corporation may elect to reduce the amount of its subpart F income for any taxable year which is attributable to any qualified activity by the amount of any deficit in earnings and profits of a qualified chain member for a taxable year ending with (or within) the taxable year of such controlled foreign corporation to the extent such deficit is attributable to such activity. To the extent any deficit reduces subpart F income under the preceding sentence, such deficit shall not be taken into account under subparagraph (B).
If the subpart F income of any controlled foreign corporation for any taxable year was reduced by reason of paragraph (1)(A), any excess of the earnings and profits of such corporation for any subsequent taxable year over the subpart F income of such foreign corporation for such taxable year shall be recharacterized as subpart F income under rules similar to the rules applicable under section 904(f)(5).
For purposes of this subsection, earnings and profits of any controlled foreign corporation shall be determined without regard to paragraphs (4), (5), and (6) of section 312(n). Under regulations, the preceding sentence shall not apply to the extent it would increase earnings and profits by an amount which was previously distributed by the controlled foreign corporation.
The Secretary shall prescribe such regulations as may be necessary or appropriate to carry out the purposes of subsection (a)(5), including regulations which treat income paid through 1 or more entities as derived from a foreign country to which section 901(j) applies if such income was, without regard to such entities, derived from such country.