(a) An inmate who is sentenced to a local correctional facility shall be allowed an initial deduction from the inmate’s term of confinement.
(b) The deduction described in subsection (a) of this section shall be calculated:
(1) from the first day of the inmate’s postsentence commitment to the custody of the local correctional facility to the last day of the inmate’s maximum term of confinement;
(2) (i) at the rate of 5 days for each calendar month if the inmate’s term of confinement includes a consecutive or concurrent sentence for a crime of violence, as defined in § 14–101 of the Criminal Law Article or a crime of manufacturing, distributing, dispensing, or possessing a controlled dangerous substance in violation of § 5–612 or § 5–613 of the Criminal Law Article; or
(ii) at the rate of 10 days for each calendar month for all other inmates; and
(3) on a prorated basis for any portion of a calendar month.