; and (B) not earlier than 9 months preceding the date of the expiration of the term of his office and not later than 6 months preceding such date, he advised the President or the appellate division, as appropriate, in writing that he was willing to accept reappointment as an immigration judge. (4) Any immigration judge who becomes permanently disabled from performing his duties shall retire. (h) Retired pay Any individual who— (1) retires under paragraph (1), (2), or (3) of subsection (g) and elects under subsection (i) to receive retired pay under this subsection shall receive retired pay during any period at a rate which bears the same ratio to the rate of the salary payable to an immigration judge during such period as the number of years he has served as immigration judge bears to 10; except that the rate of such retired pay shall not be more than the rate of such salary for such period; or (2) retires under paragraph (4) of subsection (b) and elects under subsection (i) to receive retired pay under this subsection shall receive retired pay during any period at a rate— (A) equal to the rate of the salary payable to an immigration judge during such period if before he retired he had served as an immigration judge not less than 10 years