; and (B) by adding at the end the following new subparagraph: (C) If an individual is entitled for any month to a widow's or widower's insurance benefit and is also entitled to an old-age or disability insurance benefit for such month that is greater than such widow's or widower's insurance benefit, the reduction described in subparagraph (A), with respect to such widow's or widower's insurance benefit, shall be carried out by substituting an amount equal to the primary insurance amount of the deceased individual referred to in subsection (e)(1) or (f)(1) (as determined for purposes of subsection (e)(2)(A)(i) or (f)(2)(A)(i)) for the amount equal to the old-age or disability insurance benefit of the individual entitled to the widow's or widower's insurance benefit. . (c) Conforming amendments Section 216(d) of the Social Security Act ( 42 U.S.C. 416(d) ) is amended— (1) in paragraph (1), by striking 10 years and inserting 5 years ; (2) in paragraph (2), by striking 10 years and inserting 5 years ; (3) in paragraph (4), by striking 10 years and inserting 5 years ; and (4) in paragraph (5), by striking 10 years and inserting 5 years . (d) Effective date The amendments made by this section shall apply with respect to wife’s insurance benefits, husband’s insurance benefits, widow's insurance benefits, and widower's insurance benefits that are payable for months beginning after December 31, 2018. 3. Extended benefit eligibility for children who are full-time students (a) In general (1) Extension of benefits Section 202(d) of the Social Security Act ( 42 U.S.C. 402(d) ) is amended— (A) in paragraphs (1)(B), (1)(E), (1)(F)(i), (1)(G)(ii), (6)(A), (6)(D), (6)(E)(i), (7)(A), (7)(B), and (7)(D), by striking full-time elementary or secondary school student each place it appears and inserting full-time student ; (B) in paragraphs (1)(B), (1)(F)(ii), (1)(G)(iii), (6)(A), (6)(D), (6)(E)(ii), and (7)(D), by striking 19 each place it appears and inserting 23