period has ended and until a successor is appointed in accordance with section 602 of the Immigration and Nationality Act, but not more than 1 year after the end of the transition period. (d) Prior service credit (1) In general The period that a covered immigration judge who elects to receive retired pay under section 602 of the Immigration and Nationality Act, as added by this Act, serves as a member of the Board of Immigration Appeals, an immigration judge, or an administrative law judge in the Executive Office for Immigration Review of the Department of Justice, shall be included, up to a maximum of 5 years, in the service of such individual on the Immigration Courts for purposes of computing the years of service as an immigration judge. (2) Covered immigration judge defined In this subsection, the term covered immigration judge means— (A) an immigration appeals judge appointed under section 601(b) of the Immigration and Nationality Act, as added by this Act