; or (B) for purposes of paragraph (1)(H)(i), the individual attains 62 years of age. (6) The Commissioner of Social Security shall determine (using reasonable actuarial assumptions) and publish on or before November 1 of each calendar year after 2040 the number of months (rounded, if not a multiple of one month, to the next lower multiple of one month) by which life expectancy as of October 1 of such calendar year of an individual attaining early retirement age on such October 1 exceeds the life expectancy as of October 1, 2041, of an individual attaining early retirement age on October 1, 2041. With respect to an individual who attains early retirement in the calendar year following any calendar year in which a determination is made under this paragraph, the age increase factor shall be the number of months determined under this paragraph as of October 1 of such calendar year in which such determination is made. . 3. Increase in Maximum Age for Delayed Retirement Credit (a) In general Subsection (w) of section 202 of the Social Security Act ( 42 U.S.C. 402 ) is amended— (1) in paragraphs (2)(A) and (3), by striking age 70 each place it appears and inserting the maximum delayed retirement age (as determined pursuant to paragraph (7)) ; (2) by adding at the end the following new paragraph: (7) For purposes of paragraphs (2)(A) and (3), the maximum delayed retirement age shall be equal to— (A) during the period before January 1, 2030, 70 years of age for an individual who has attained early retirement age (as determined under section 216(l)(2)) during such period; and (B) during the period after December 31, 2029, the sum of— (i) the retirement age for such calendar year, as determined under section 216(l)(1), for an individual who has attained age 62 (for purposes of section 216(l)(2)(A)) or who has attained age 60 (for purposes of section 216(l)(2)(B)) during such calendar year