(a) Subject to subsections (b) and (c) of this section, § 3–711 of this subtitle, and Title 7, Subtitle 5 of this article, an inmate committed to the custody of the Commissioner is entitled to a diminution of the inmate’s term of confinement as provided under this subtitle.
(b) An inmate who is serving a sentence for a violation of § 3–303 or § 3–304 of the Criminal Law Article involving a victim who is a child under the age of 16 years, or an inmate who is serving a sentence for a violation of § 3–305 or § 3–306 of the Criminal Law Article, as the sections existed before October 1, 2017, involving a victim who is a child under the age of 16 years, is not entitled to a diminution of the inmate’s term of confinement as provided under this subtitle.
(c) An inmate who is serving a sentence for a violation of § 3–307 of the Criminal Law Article involving a victim who is a child under the age of 16 years is not entitled to a diminution of the inmate’s term of confinement as provided under this subtitle, if the inmate was previously convicted of a violation of § 3–307 of the Criminal Law Article involving a victim who is a child under the age of 16 years.