Crimes and Penalties Law — Article 25 — Article (25)
Book One: General Provisions · Chapter Two: Spatial Application of the Law and Its Application to Persons: Article (17)
When executing the penalty against the convict, the period which he has served in custody, in preventive detention, electronic probation, or in execution of the penalty abroad for the crime for which he has been convicted shall be taken into account.
Interpretation and application must be checked against the official text and current version.