loss arising in a taxable year beginning before January 1, 2018, and ending after December 31, 2017— (A) an application under section 6411(a) of the Internal Revenue Code of 1986 with respect to the carryback of such net operating loss shall not fail to be treated as timely filed if filed not later than the date which is 120 days after the date of the enactment of this Act, and (B) an election to— (i) forgo any carryback of such net operating loss, (ii) reduce any period to which such net operating loss may be carried back, or (iii) revoke any election made under section 172(b) to forgo any carryback of such net operating loss, shall not fail to be treated as timely made if made not later than the date which is 120 days after the date of the enactment of this Act. 2204. Modification of limitation on losses for taxpayers other than corporations (a) In general Section 461(l)(1) of the Internal Revenue Code of 1986 is amended by striking December 31, 2017 and inserting December 31, 2020 . (b) Technical amendments relating to section 11012 of Public Law 115–97 (1) Section 461(l)(2) of the Internal Revenue Code of 1986 is amended by striking a net operating loss carryover to the following taxable year under section 172 and inserting a net operating loss for the taxable year for purposes of determining any net operating loss carryover under section 172(b) for subsequent taxable years . (2) Section 461(l)(3)(A) of such Code is amended— (A) in clause (i), by inserting and without regard to any deduction allowable under section 172 or 199A after under paragraph (1) , and (B) by adding at the end the following flush sentence: Such excess shall be determined without regard to any deductions, gross income, or gains attributable to any trade or business of performing services as an employee. . (3) Section 461(l)(3) of such Code is amended by redesignating subparagraph (B) as subparagraph (C) and by inserting after subparagraph (A) the following new subparagraph: (B) Treatment of capital gains and losses (i) Losses Deductions