(a) For purposes of determining both the retirement salary of judges who first commenced service as judges prior to January 1, 1981, and the allowance payable to their surviving spouses under subsection (a) of § 51-51, “salary for the office” shall be composed of the total of the following amounts: The annual salary payable pursuant to subsection (a) of § 51-47, as such salary may change from time to time; and for judges to whom a longevity payment has been made or is due and payable, in each instance under subsection (d) of § 51-47, (1) one and one-half per cent of annual salary, as such salary may change from time to time, for those who have completed ten or more but less than fifteen years of service as a judge or other state service or service as an elected official of the state or any combination of such service, (2) three per cent of annual salary, as such salary may change from time to time, for those who have completed fifteen or more but less than twenty years of service as a judge or other state service or service as an elected official of the state or any combination of such service, (3) four and one-half per cent of annual salary, as such salary may change from time to time, for those who have completed twenty or more but less than twenty-five years of service as a judge or other state service or service as an elected official of the state or any combination of such service, and (4) six per cent of annual salary, as such salary may change from time to time, for those who have completed twenty-five or more years of service as a judge or other state service or service as an elected official of the state or any combination of such service.

(b) For purposes of determining both the retirement salary of judges who first commenced service as judges on or after January 1, 1981, and prior to July 1, 2011, and the allowance payable to their surviving spouses, under subsection (b) of § 51-51, “salary” shall be composed of the total of the following amounts: The annual salary payable at the time of retirement or death, fixed in accordance with subsection (a) of § 51-47; and for judges to whom a longevity payment has been made or is due and payable, in each case under subsection (d) of § 51-47, (1) one and one-half per cent of the annual salary the judge was receiving at the time of retirement or death, for those who have completed ten or more but less than fifteen years of service as a judge or other state service or service as an elected official of the state or any combination of such service, (2) three per cent of the annual salary the judge was receiving at the time of retirement or death, for those who have completed fifteen or more but less than twenty years of service as a judge or other state service or service as an elected official of the state or any combination of such service, (3) four and one-half per cent of the annual salary the judge was receiving at the time of retirement or death, for those who have completed twenty or more but less than twenty-five years of service as a judge or other state service or service as an elected official of the state or any combination of such service, and (4) six per cent of the annual salary the judge was receiving at the time of retirement or death, for those who have completed twenty-five or more years of service as a judge or other state service or service as an elected official of the state or any combination of such service.

(c) For purposes of determining both the retirement salary of judges who first commenced service as judges on or after July 1, 2011, and the allowance payable to their surviving spouses, under subsection (b) of § 51-51, “salary” shall be composed of the total of the following amounts: The average annual salary for the five years next preceding his or her retirement payable at the time of retirement or death, fixed in accordance with subsection (a) of § 51-47; and for judges to whom a longevity payment has been made or is due and payable, in each case under subsection (d) of § 51-47, (1) one and one-half per cent of the annual salary the judge was receiving at the time of retirement or death, for those who have completed ten or more but less than fifteen years of service as a judge or other state service or service as an elected official of the state or any combination of such service, (2) three per cent of the annual salary the judge was receiving at the time of retirement or death, for those who have completed fifteen or more but less than twenty years of service as a judge or other state service or service as an elected official of the state or any combination of such service, (3) four and one-half per cent of the annual salary the judge was receiving at the time of retirement or death, for those who have completed twenty or more but less than twenty-five years of service as a judge or other state service or service as an elected official of the state or any combination of such service, and (4) six per cent of the annual salary the judge was receiving at the time of retirement or death, for those who have completed twenty-five or more years of service as a judge or other state service or service as an elected official of the state or any combination of such service.

(d) Notwithstanding any provision of the general statutes, on and after October 2, 2011, the retirement salary of a judge shall not exceed the limits of Section 415 of the Internal Revenue Code of 1986, or any subsequent corresponding internal revenue code of the United States, as amended from time to time.