is no longer employed, such individual shall be treated, for purposes of clause (i), as taking leave from covered employment under the law of a legacy State (as so defined) with respect to the portion of the time during which the individual was engaged in an activity for a qualifying reason corresponding to the share of the individual’s workweek that was in covered employment under the law of a legacy State (as so defined). (6) National average wage index The term national average wage index has the meaning given such term in section 209(k)(1) of the Social Security Act ( 42 U.S.C. 409(k)(1) ). (7) Self-employment income The term self-employment income has the same meaning as such term in section 211(b) of such Act ( 42 U.S.C. 411(b) ). (8) State The term State means any State of the United States or the District of Columbia or any territory or possession of the United States. (9) Wages The term wages has the meaning given such term in section 3121(a) of the Internal Revenue Code of 1986 for purposes of the taxes imposed by sections 3101(b) and 3111(b) of such Code (without regard to section 3121(u)(2)(C) of such Code), except that such term also includes— (A) compensation, as defined in section 3231(e) of such Code for purposes of the Railroad Retirement Tax Act