To amend the Internal Revenue Code of 1986 to allow a credit for the production of oil and gas from domestic marginal wells and to extend the credit for alternative fuels.

SECTION 1. TAX CREDIT FOR MARGINAL DOMESTIC OIL AND NATURAL GAS WELL 
              PRODUCTION.

    (a) In General.--Subpart D of part IV of subchapter A of chapter 1 
of the Internal Revenue Code of 1986 (relating to business credits) is 
amended by adding at the end the following new section:

``SEC. 45G. CREDIT FOR PRODUCING OIL AND GAS FROM MARGINAL WELLS.

    ``(a) General Rule.--For purposes of section 38, the marginal well 
production credit for any taxable year is an amount equal to the 
product of--
            ``(1) the credit amount, and
            ``(2) the qualified crude oil production and the qualified 
        natural gas production which is attributable to the taxpayer.
    ``(b) Credit Amount.--For purposes of this section--
            ``(1) In general.--The credit amount is--
                    ``(A) $3 per barrel of qualified crude oil 
                production, and
                    ``(B) 50 cents per 1,000 cubic feet of qualified 
                natural gas production.
            ``(2) Reduction as oil and gas prices increase.--
                    ``(A) In general.--The $3 and 50 cents amounts 
                under paragraph (1) shall each be reduced (but not 
                below zero) by an amount which bears the same ratio to 
                such amount (determined without regard to this 
                paragraph) as--
                            ``(i) the excess (if any) of the applicable 
                        reference price over $15 ($1.67 for qualified 
                        natural gas production), bears to
                            ``(ii) $3 ($0.33 for qualified natural gas 
                        production).
                The applicable reference price for a taxable year is 
                the reference price for the calendar year preceding the 
                calendar year in which the taxable year begins.
                    ``(B) Inflation adjustment.--In the case of any 
                taxable year beginning in a calendar year after 2003, 
                each of the dollar amounts contained in subparagraph 
                (A) shall be increased to an amount equal to such 
                dollar amount multiplied by the inflation adjustment 
                factor for such calendar year (determined under section 
                43(b)(3)(B) by substituting `2002' for `1990').
                    ``(C) Reference price.--For purposes of this 
                paragraph, the term `reference price' means, with 
                respect to any calendar year--
                            ``(i) in the case of qualified crude oil 
                        production, the reference price determined 
                        under section 29(d)(2)(C), and
                            ``(ii) in the case of qualified natural gas 
                        production, the Secretary's estimate of the 
                        annual average wellhead price per 1,000 cubic 
                        feet for all domestic natural gas.
    ``(c) Qualified Crude Oil and Natural Gas Production.--For purposes 
of this section--
            ``(1) In general.--The terms `qualified crude oil 
        production' and `qualified natural gas production' mean 
        domestic crude oil or natural gas which is produced from a 
        marginal well.
            ``(2) Limitation on amount of production which may 
        qualify.--
                    ``(A) In general.--Crude oil or natural gas 
                produced during any taxable year from any well shall 
                not be treated as qualified crude oil production or 
                qualified natural gas production to the extent 
                production from the well during the taxable year 
                exceeds 1,095 barrels or barrel equivalents.
                    ``(B) Proportionate reductions.--
                            ``(i) Short taxable years.--In the case of 
                        a short taxable year, the limitations under 
                        this paragraph shall be proportionately reduced 
                        to reflect the ratio which the number of days 
                        in such taxable year bears to 365.
                            ``(ii) Wells not in production entire 
                        year.--In the case of a well which is not 
                        capable of production during each day of a 
                        taxable year, the limitations under this 
                        paragraph applicable to the well shall be 
                        proportionately reduced to reflect the ratio 
                        which the number of days of production bears to 
                        the total number of days in the taxable year.
            ``(3) Definitions.--
                    ``(A) Marginal well.--The term `marginal well' 
                means a domestic well--
                            ``(i) the production from which during the 
                        taxable year is treated as marginal production 
                        under section 613A(c)(6), or
                            ``(ii) which, during the taxable year--
                                    ``(I) has average daily production 
                                of not more than 25 barrel equivalents, 
                                and
                                    ``(II) produces water at a rate not 
                                less than 95 percent of total well 
                                effluent.
                    ``(B) Crude oil, etc.--The terms `crude oil', 
                `natural gas', `domestic', and `barrel' have the 
                meanings given such terms by section 613A(e).
                    ``(C) Barrel equivalent.--The term `barrel 
                equivalent' means, with respect to natural gas, a 
                conversion ratio of 6,000 cubic feet of natural gas to 
                1 barrel of crude oil.
    ``(d) Other Rules.--
            ``(1) Production attributable to the taxpayer.--In the case 
        of a marginal well in which there is more than one owner of 
        operating interests in the well and the crude oil or natural 
        gas production exceeds the limitation under subsection (c)(2), 
        qualifying crude oil production or qualifying natural gas 
        production attributable to the taxpayer shall be determined on 
        the basis of the ratio which taxpayer's revenue interest in the 
        production bears to the aggregate to the revenue interests of 
        all operating interest owners in the production.
            ``(2) Operating interest required.--Any credit under this 
        section may be claimed only on production which is attributable 
        to the holder of an operating interest.
            ``(3) Production from nonconventional sources excluded.--In 
        the case of production from a marginal well which is eligible 
        for the credit allowed under section 29 for the taxable year, 
        no credit shall be allowable under this section unless the 
        taxpayer elects not to claim credit under section 29 with 
        respect to the well.''.
    (b) Credit Treated as Business Credit.--Section 38(b) of such Code 
is amended by striking ``plus'' at the end of paragraph (14), by 
striking the period at the end of paragraph (15) and inserting'', 
plus'', and by adding at the end of the following new paragraph:
            ``(16) the marginal oil and gas well production credit 
        determined under section 45G(a).''.
    (c) Credit Allowed Against Regular and Minimum Tax.--
            (1) In general.--Subsection (c) of section 38 of such Code 
        (relating to limitation based on amount of tax) is amended by 
        redesignating paragraph (4) as paragraph (5) and by inserting 
        after paragraph (3) the following new paragraph:
            ``(4) Special rules for marginal oil and gas well 
        production credit.--
                    ``(A) In general.--In the case of the marginal oil 
                and gas well production credit--
                            ``(i) this section and section 39 shall be 
                        applied separately with respect to the credit, 
                        and
                            ``(ii) in applying paragraph (1) to the 
                        credit--
                                    ``(I) subparagraphs (A) and (B) 
                                thereof shall not apply, and
                                    ``(II) the limitation under 
                                paragraph (1) (as modified by subclause 
                                (I)) shall be reduced by the credit 
                                allowed under subsection (a) for the 
                                taxable year (other than the marginal 
                                oil and gas well production credit).
                    ``(B) Marginal oil and gas well production 
                credit.--For purposes of this subsection, the term 
                `marginal oil and gas well production credit' means the 
                credit allowable under subsection (a) by reason of 
                section 45G(a).''.
            (2) Conforming amendments.--
                    (A) Subclause (II) of section 38(c)(2)(A)(ii) of 
                such Code is amended by striking ``credit or'' and 
                inserting ``credit,'' and by striking ``credit)'' and 
                inserting ``credit, or the marginal oil and gas well 
                production credit)''.
                    (B) Subclause (II) of section 38(c)(3)(A)(ii) of 
                such Code is amended by inserting ``or the marginal oil 
                and gas well production credit)'' after ``employee 
                credit''.
    (d) Carryback.--Subsection (a) of section 39 of such Code (relating 
to carryback and carryforward of unused credits generally) is amended 
by adding at the end the following new paragraph:
            ``(3) 10-year carryback for marginal oil and gas well 
        production credit.--In the case of the marginal oil and gas 
        well production credit--
                    ``(A) this section shall be applied separately from 
                the business credit (other than the marginal oil and 
                gas well production credit),
                    ``(B) paragraph (1) shall be applied by 
                substituting `10 taxable year' for `1 taxable year' in 
                subparagraph (A) thereof, and
                    ``(C) paragraph (2) shall be applied--
                            ``(i) by substituting `31 taxable years' 
                        for `21 taxable years' in subparagraph (A) 
                        thereof, and
                            ``(ii) by substituting `30 taxable years' 
                        for `20 taxable years' in subparagraph (B) 
                        thereof.''.
    (e) Coordination With Section 29.--Section 29(a) of such Code is 
amended by striking ``There'' and inserting ``At the election of the 
taxpayer, there.''
    (f) Clerical Amendment.--The table of sections for subpart D of 
part IV of subchapter A of chapter 1 of such Code is amended by adding 
at the end the following item:

                              ``Sec. 45G. Credit for producing oil and 
                                        gas from marginal wells.''.
    (g) Effective Date.--The amendments made by this section shall 
apply to production in taxable years beginning after December 31, 2002.

SEC. 2. EXTENSION OF CREDIT FOR PRODUCING FUEL FROM A NONCONVENTIONAL 
              SOURCE.

    (a) In General.--Paragraph (2) of section 29(f) of the Internal 
Revenue Code of 1986 (relating to application of section) is amended by 
striking ``2003'' and inserting ``2008''.
    (b) Effective Date.--The amendment made by subsection (a) shall 
apply with respect to fuels sold after December 31, 2002.

Summary: Amends the Internal Revenue Code to establish a credit for producing oil and gas from marginal wells. Extends, by five years, the credit for producing fuel from a nonconventional source.