GENERAL PART
Chapter Two
APPLICATION OF THE PENAL CODE
3. Territorial Application
Credit for Detention Abroad
Article 15
Any period of detention and confinement during the extradition procedure, or sentence of imprisonment served under the judgement of a foreign court, if it becomes known at a later time, shall be credited towards the sentence imposed for the same criminal offence by the domestic court. If sentences are of different types, the domestic court shall decide on the appropriate method of deduction of the period served abroad. If the convicted person server together more sentences than they were imposed on him in the judgement before the domestic court, the surplus shall deem him wrongfully convicted.
Reduction of national sentence following pre-trial detention - national proceedings
EDIT.