What happens if the period of pretrial detention or provisional electronic monitoring served by the convict exceeds the court-ordered imprisonment sentence in a case where the judgment imposes both imprisonment and fine? 
In such a scenario, the said excess duration will be deducted from the fine for each day.