((a)) ** Allowance of deduction**
((1)) ** In general** In the case of a domestic corporation for any taxable year, there shall be allowed as a deduction an amount equal to the sum of—
((A)) 33.34 percent of the foreign-derived deduction eligible income of such domestic corporation for such taxable year, plus
((B)) 40 percent of—
((i)) the net CFC tested income amount (if any) which is included in the gross income of such domestic corporation under section 951A for such taxable year, and
((ii)) the amount treated as a dividend received by such corporation under section 78 which is attributable to the amount described in clause (i).
((2)) ** Limitation based on taxable income**
((A)) ** In general** If, for any taxable year—
((i)) the sum of the foreign-derived deduction eligible income and the net CFC tested income amount otherwise taken into account by the domestic corporation under paragraph (1), exceeds
((ii)) the taxable income of the domestic corporation (determined without regard to this section),
((B)) ** Reduction** For purposes of subparagraph (A)—
((i)) foreign-derived deduction eligible income shall be reduced by an amount which bears the same ratio to the excess described in subparagraph (A) as such foreign-derived deduction eligible income bears to the sum described in subparagraph (A)(i), and
((ii)) the net CFC tested income amount shall be reduced by the remainder of such excess.
((b)) ** Foreign-derived deduction eligible income** For purposes of this section—
((1)) ** Foreign-derived deduction eligible income** The term “foreign-derived deduction eligible income” means, with respect to any taxpayer for any taxable year, any deduction eligible income of such taxpayer which is derived in connection with—
((A)) property—
((i)) which is sold by the taxpayer to any person who is not a United States person, and
((ii)) which the taxpayer establishes to the satisfaction of the Secretary is for a foreign use, or
((B)) services provided by the taxpayer which the taxpayer establishes to the satisfaction of the Secretary are provided to any person, or with respect to property, not located within the United States.
((2)) ** Rules relating to foreign use property or services** For purposes of this subsection—
((A)) ** Foreign use** The term “foreign use” means any use, consumption, or disposition which is not within the United States.
((B)) ** Property or services provided to domestic intermediaries**
((i)) ** Property** If a taxpayer sells property to another person (other than a related party) for further manufacture or other modification within the United States, such property shall not be treated as sold for a foreign use even if such other person subsequently uses such property for a foreign use.
((ii)) ** Services** If a taxpayer provides services to another person (other than a related party) located within the United States, such services shall not be treated as described in paragraph (1)(B) even if such other person uses such services in providing services which are so described.
((C)) ** Special rules with respect to related party transactions**
((i)) ** Sales to related parties** If property is sold to a related party who is not a United States person, such sale shall not be treated as for a foreign use unless—
((I)) such property is ultimately sold by a related party, or used by a related party in connection with property which is sold or the provision of services, to another person who is an unrelated party who is not a United States person, and
((II)) the taxpayer establishes to the satisfaction of the Secretary that such property is for a foreign use.
((ii)) ** Service provided to related parties** If a service is provided to a related party who is not located in the United States, such service shall not be treated described in subparagraph (A)(ii) unless the taxpayer established to the satisfaction of the Secretary that such service is not substantially similar to services provided by such related party to persons located within the United States.12
((D)) ** Related party** For purposes of this paragraph, the term “related party” means any member of an affiliated group as defined in section 1504(a), determined—
((i)) by substituting “more than 50 percent” for “at least 80 percent” each place it appears, and
((ii)) without regard to paragraphs (2) and (3) of section 1504(b).
((E)) ** Sold** For purposes of this subsection (other than paragraph (3)(A)(i)(VII)), the terms “sold”, “sells”, and “sale” shall include any lease, license, exchange, or other disposition.
((3)) ** Deduction eligible income**
((A)) ** In general** The term “deduction eligible income” means, with respect to any domestic corporation, the excess (if any) of—
((i)) gross income of such corporation determined without regard to—
((I)) any amount included in the gross income of such corporation under section 951(a)(1),
((II)) the net CFC tested income included in the gross income of such corporation under section 951A,
((III)) any financial services income (as defined in section 904(d)(2)(D)) of such corporation,
((IV)) any dividend received from a corporation which is a controlled foreign corporation of such domestic corporation,
((V)) any domestic oil and gas extraction income of such corporation,
((VI)) any foreign branch income (as defined in section 904(d)(2)(J)), and
((VII)) except as otherwise provided by the Secretary, any income and gain from the sale or other disposition (including pursuant to the deemed sale or other deemed disposition or a transaction subject to section 367(d)) of—
((aa)) intangible property (as defined in section 367(d)(4)), and
((bb)) any other property of a type that is subject to depreciation, amortization, or depletion by the seller, over
((ii)) expenses and deductions (including taxes), other than interest expense and research or experimental expenditures, properly allocable to such gross income.
((B)) ** Domestic oil and gas extraction income** For purposes of subparagraph (A), the term “domestic oil and gas extraction income” means income described in section 907(c)(1), determined by substituting “within the United States” for “without the United States”.
((c)) ** Regulations** The Secretary shall prescribe such regulations or other guidance as may be necessary or appropriate to carry out the provisions of this section.