(b)
Retirement Upon Failure of Reappointment.—
A bankruptcy judge or magistrate judge to whom this section applies, who is not reappointed following the expiration of the term of office of such judge or magistrate judge, and who retires upon the completion of the term shall, subject to subsection (f), be entitled to receive, upon attaining the age of 65 years and during the remainder of such bankruptcy judge’s or magistrate judge’s lifetime, an annuity equal to that portion of the salary being received at the time the judge or magistrate judge leaves office which the aggregate number of years of service, not to exceed 14, bears to 14, if—
(1)
such judge or magistrate judge has served at least 1 full term as a bankruptcy judge or magistrate judge, and
(2)
not earlier than 9 months before the date on which the term of office of such judge or magistrate judge expires, and not later than 6 months before such date, such judge or magistrate judge notified the appointing authority in writing that such judge or magistrate judge was willing to accept reappointment to the position in which such judge or magistrate judge was serving.
For purposes of this subsection, in the case of a bankruptcy judge, the written notice required by paragraph (2) shall be given to the chief judge of the circuit in which such bankruptcy judge is serving and, in the case of a magistrate judge, such notice shall be given to the chief judge of the district court in which the magistrate judge is serving.