The following time shall be included in the computation of the service to be credited to a member of the police department for the purposes of determining whether such member qualified for retirement, and calculating benefits, excluding, however, any time the contributions for which were withdrawn by said member upon termination of his service while he was a member under any other Charter section, and not redeposited upon re-entry into service:
(a) Time during and for which said member is entitled to receive compensation because of services as a member of the fire or police department.
(b) Time during which said member served and received compensation as a jail matron in the office of the sheriff.
(c) Time during which said member is entitled to receive compensation while a member of the Retirement System, because of service rendered in other offices and departments before July 1, 1949, provided that accumulated contributions on account of such service, previously refunded, are redeposited, with interest from date of refund to date of redeposit, at times and in the manner fixed by the retirement board; and solely for the purpose of determining qualification for retirement under Section 8.547 for disability not resulting from injury received in, or illness caused by performance of duty, time during which said member serves, after June 30, 1949, and receives compensation because of services rendered in other offices and departments.
(d) Time during which said member is absent from a status included in paragraphs (a), (b), or (c) next preceding, by reason of service in the armed forces of the United States of America, or by reason of any other service included in Section 8.520 of the Charter, during any war in which the United States was or shall be engaged or during other national emergency, and for which said member contributed or contributes to the Retirement System or for which the City and County contributed or contributes on his account.