; elimination of extended period of eligibility Section 223(a)(1) of the Social Security Act ( 42 U.S.C. 423(a)(1) ) is amended, in the matter following subparagraph (E), by striking the earlier of and all that follows through the 36 months following such period of trial work in which he engages or is determined able to engage in substantial gainful activity and inserting the third month following the earliest month after the end of such period of trial work with respect to which such individual is determined to no longer be suffering from a disabling physical or mental impairment . (2) Date of termination of child’s benefits Section 202(d)(1)(G)(i) of such Act ( 42 U.S.C. 402(d)(1)(G)(i) ) is amended by striking the earlier of and all that follows through substantial gainful activity), and inserting the third month following the earliest month after the end of such period of trial work with respect to which such individual is determined to no longer be suffering from a disabling physical or mental impairment, . (3) Date of termination of widow’s and widower’s benefits Subsections (e)(1) and (f)(1) of section 202 of such Act ( 42 U.S.C. 402 ) are each amended, in the matter following subparagraph (E), by striking the earlier of and all that follows through the end of the paragraph and inserting the third month following the earliest month after the end of such period of trial work with respect to which such individual is determined to no longer be suffering from a disabling physical or mental impairment. . (4) Elimination of work-related termination of hospital insurance benefits Section 226(b) of such Act ( 42 U.S.C. 426(b) ) is amended, in the matter following paragraph (2), by striking For purposes of this subsection and all that follows through the end. (5) Conforming amendment related to expedited reinstatement Section 223 of such Act ( 42 U.S.C. 423 ) is amended by striking subsection (i). (b) Benefit reduction based on earnings derived from services (1) In general Section 223(e) of such Act ( 42 U.S.C.