(a) Except as provided in subsection (b) of this section, regular interest is payable on member contributions at the rate of 4% a year compounded annually, until retirement or withdrawal of the accumulated contributions.

(b) (1) This subsection applies only to an individual who becomes a member of the Judges’ Retirement System on or after July 1, 2012.

(2) No further interest shall be paid on member contributions after membership ends if the former member is not eligible to receive a vested allowance under Title 29, Subtitle 3 of this article.