In any commitment for incarceration in a county jail or detention facility, other than the Utah State Prison, the custodial authority may in its discretion and upon good behavior of the inmate allow up to 10 days credit against the sentence to be served for every 30 days served or up to two days credit for every 10 days served when the period to be served is less than 30 days if:
Utah Code § 76-3-403