The former Yugoslav Republic of Macedonia
GENERAL PART
12. APPLICATION OF THE CRIMINAL LEGISLATURE ACCORDING TO THE PLACE OF PERPETRATION OF THE CRIME
Reckoning pre-trial confinement and a punishment served abroad
Article 121
The pre-trial confinement, the arrest during the extradition procedure, as well as the sentence or the security measure involving imprisonment which the offender served according to a sentence by a foreign court, shall be reckoned in the punishment which shall be pronounced by the domestic court for the same crime, and if the punishments are not of the same kind, the reckoning shall be done according to the assessment of the court.
Reduction of national sentence following pre-trial detention - national proceedings
EDIT.