; (2) in clause (iii), by inserting and at the end; and (3) by inserting after clause (iii) the following: (iv) 2 percent of the individual’s excess average indexed monthly earnings (as defined in subsection (b)(5)(A)). . (b) Definition of excess average indexed monthly earnings Section 215(b) of the Social Security Act ( 42 U.S.C. 415(b) ) is amended— (1) by striking wages and self-employment income each place such terms appear and inserting basic wages and basic self-employment income , respectively; and (2) by adding at the end the following: (5) (A) An individual's excess average indexed monthly earnings shall be equal to the amount of the individual's average indexed monthly earnings that would be determined under this subsection by substituting excess wages for basic wages and excess self-employment income for basic self-employment income each place such terms appear in this subsection (except in this paragraph). (B) For purposes of this subsection— (i) the term basic wages means that portion of the wages of an individual paid in a year that does not exceed the contribution and benefit base for the year; (ii) the term basic self-employment income means that portion of the self-employment income of an individual credited to a year that does not exceed an amount equal to the contribution and benefit base for the year minus the amount of the wages paid to the individual in the year; (iii) the term excess wages means that portion of the wages of an individual paid in a year after 2018 in excess of the higher of $400,000 or the contribution and benefit base for the year