360. A defendant who is in detention may, during his term of imprisonment, pay to the director or warden of the establishment where he is detained the balance of the sums due.
The amount of the sums due at the time of imprisonment is then reduced proportionately to the ratio between the number of days of imprisonment already served or paid and the number of days of imprisonment to be served at the time of imprisonment.