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

(1) 4% a year, compounded annually, for a member who has transferred from the Employees’ Retirement System on or before December 31, 2004; or

(2) 5% a year, compounded annually, for each other member.

(b) 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.