TITLE 26. INTERNAL REVENUE CODE § 1400Z-2. Special rules for capital gains invested in opportunity zones., 26 USCS § 1400Z-2
Summary
(a) In general.
(1) Treatment of gains. In the case of gain from the sale to, or exchange with, an unrelated person of any property held by the taxpayer, at the election of the taxpayer—
(A) gross income for the taxable year shall not include so much of such gain as does not exceed the aggregate amount invested by the taxpayer in a qualified opportunity fund during the 180-day period beginning on the date of such sale or exchange,