; and (B) by inserting after subparagraph (C) the following new subparagraph: (D) During the period that begins on January 1, 2019, and ends on December 31, 2023, when any of such individuals has attained age 19 and is entitled to monthly benefits as a child who is a full-time student under section 202(d)(1)(B)(i) for any month, the benefit to which he or she is entitled on the basis of the wages and self-employment income of such insured individual for such month shall be determined without regard to this subsection, and the benefits of all other individuals who are entitled for such month to monthly benefits under section 202 on the wages and self-employment income of such insured individual shall be determined as if no such child were entitled to benefits for such month. ; and (2) in paragraph (6), by inserting (3)(E), after (3)(D), . (c) Railroad Retirement Act (1) Section 2(d) of the Railroad Retirement Act of 1974 (45 U.S.C. 232(2)(d)) is amended— (A) in clause (iii) of paragraph (1), by striking will be less than nineteen years of age and a full-time elementary or secondary school student and inserting will be less than 23 years of age and a full-time student at an educational institution (as defined in section 202(d)(7) of the Social Security Act) ; and (B) in paragraph (4)— (i) by striking elementary or secondary school each place it appears and inserting educational institution ; (ii) by striking nineteen and inserting 23 ; and (iii) by striking a diploma or equivalent certificate from a secondary school (as defined in section 202(d)(7)(c)(i) of the Social Security Act) and inserting a diploma, degree, or equivalent certificate from an institution described in section 202(d)(7)(C)(ii) of the Social Security Act . (2) Section 5(c)(7) of the Railroad Retirement Act of 1974 ( 45 U.S.C. 235(c)(7) ) is amended— (A) by striking elementary or secondary school and inserting educational institution