; amortization of disallowed amounts (a) In general Section 263(c) of the Internal Revenue Code of 1986 is amended to read as follows: (c) Intangible drilling and development costs in the case of oil and gas wells and geothermal wells (1) In general Notwithstanding subsection (a), and except as provided in subsection (i), regulations shall be prescribed by the Secretary under this subtitle corresponding to the regulations which granted the option to deduct as expenses intangible drilling and development costs in the case of oil and gas wells and which were recognized and approved by the Congress in House Concurrent Resolution 50, Seventy-ninth Congress. Such regulations shall also grant the option to deduct as expenses intangible drilling and development costs in the case of wells drilled for any geothermal deposit (as defined in section 613(e)(2)) to the same extent and in the same manner as such expenses are deductible in the case of oil and gas wells. This subsection shall not apply with respect to any costs to which any deduction is allowed under section 59(e) or 291. (2) Exclusion (A) In general This subsection shall not apply to amounts paid or incurred by a taxpayer in any taxable year in which such taxpayer is a major integrated oil company (within the meaning of section 167(h)(5)). (B) Amortization of amounts not allowable as deductions under subparagraph (A) The amount not allowable as a deduction for any taxable year by reason of subparagraph (A) shall be allowable as a deduction ratably over the 60-month period beginning with the month in which the costs are paid or incurred. For purposes of section 1254, any deduction under this subparagraph shall be treated as a deduction under this subsection. . (b) Effective date The amendment made by this section shall apply to amounts paid or incurred in taxable years beginning after December 31, 2017. 104. Limitation on percentage depletion allowance for oil and gas wells (a) In general Section 613A of the Internal Revenue Code of 1986 is amended by adding at