Section 82. Follow-up sentence

In cases of conviction for offences committed prior to judgment in another case, an additional sentence is passed for these offences if sentence could have been passed for all the offences at the same time. Section 31, second paragraph and third paragraph, second and third sentence, do not apply.
When sentencing, section 79 applies correspondingly. Consideration should be given to what a suitable penalty would have been in the case of simultaneous sentencing, and the total penalty must not be more severe than if sentence had been passed for all the offences at the same time.
In cases of conviction for offences committed in part before and in part after judgment in another case, an aggregate sentence is generally passed for all the offences. The second paragraph, second sentence, applies correspondingly to the offences that were committed prior to the first judgment.
When there are grounds for doing so, an aggregate sentence may also be passed in other situations. The second paragraph applies correspondingly.
If an aggregate sentence is passed which includes a previous sentence which has been wholly or partly executed, a deduction shall be granted for portions served.
The judgment shall state whether it is an additional sentence or an aggregate sentence.