into account the pretrial detention and mitigate the punishment or discharge the convicted person from serving it. Article 73. Calculation of terms of punishment The terms of punishment shall be calculated in years, months and hours. In case of substituting, adding up or merging of pretrial detention, the terms of punishment may be calculated in days. Chapter XII. DISCHARGE FROM PUNISHMENT AND FROM SERVING IT Article 74. Discharge from punishment and from serving it 1. Discharge of a convicted person from punishment or from further serving of punishment, substitution of an imposed punishment by a milder punishment or mitigation of punishment, except for discharge from punishment or mitigation of punishment on the grounds of the Law of Ukraine on Amnesty or an act of pardon, may only be exercised by court in cases prescribed by this Code. 2. A person convicted of acts made no longer punishable by law shall be immediately discharged from punishment imposed by a court. 3. A punishment imposed on a convicted person, which is heavier than the sanction of a new law, shall be lowered to the maximum threshold of punishment prescribed by such sanction. 4. A person who committed a minor criminal offense or medium grave offense may be discharged from punishment upon a judgment of court, if the court is satisfied that, due to good conduct and diligent work demonstrated by this person at the time of proceedings, he/she shall not be treated as socially dangerous. 5. A person may also be discharged from punishment by a judgment of court on the grounds provided for in Article 49 of this Code. Article 75. Discharge on probation 1. Where, in imposing a punishment of correctional labor, service restriction for military servants, restraint of liberty, or imprisonment for a term not exceeding five years, a court, having regard to the gravity of an offense, the character of the culprit and other circumstances of the crime, finds that the convicted may be reformed without serving the punishment, it may order a discharge on probation. 2. In this case, the court shall order to discharge the convicted person from serving the sentenced imposed on the condition that, during the probation period, this person commits no further criminal offenses and complies with the obligations imposed on him or her. 3. A probation period shall be from one to three years. Article 76. Obligations imposed on a person discharged on probation 1. In case of discharge on probation, a court may impose the following obligations on the convicted person: (1) apologize to a victim publicly or in any other way;

Select target paragraph3