; and (B) to whom wages and self-employment income were credited in each of such hypothetical individual’s elapsed years (within the meaning of section 215(b)(2)(B)(iii)) in an amount equal to 1 1/3 of the national average wage index (as described in section 209(k)(1)) for each such year. . (b) Holding SSI beneficiaries harmless For purposes of determining the income of an individual to establish eligibility for, and the amount of, benefits payable under title XVI of the Social Security Act, the amount of any benefit to which the individual is entitled under title II of such Act shall be deemed not to exceed the amount of the benefit that would be determined for such individual under such title as in effect on the day before the date of the enactment of this Act. (c) Effective date The amendments made by this section shall apply with respect to widow’s and widower’s insurance benefits payable for months after December 2017.