Any member participating in the provisions of this act who leaves the employ ofsaid city before being eligible for retirement shall have refunded to him an amount equal to the amount paid into the said fund less one-half of one per centum (0.5%) per year to cover each year that the member had paid into the fund and received protection under this act. To illustrate, if at the end of the first fiscal year, the member has paid into said fund $10 and leaves the services of the city or withdraws from the pension fund, he shall be entitled to a refund ofsaid $10 less one-halfof one per centum (0.5%) or if at the end of 24 years, he has paid into said fund $240, he would be entitled to a refund of $240 less 12 per centum. If such member should die before being awarded a pension, and should leave no beneficiary entitled to a pension as such under this act, the refund shall be paid to his estate.