1 If compulsory measures have been applied to the accused unlawfully, the criminal justice authority shall award the accused appropriate damages and satisfaction.
2 There is a right to damages and satisfaction in relation to remand and preventive detention if the permitted period of detention is exceeded is and the excessive deprivation of liberty cannot be not accounted for in sanctions imposed in respect of other offences.
3 The right under paragraph 2 ceases to apply if the accused:
a.
is sentenced to a monetary penalty, community service or a fine and the equivalent alternative custodial sentence would not be substantially shorter than the time spent on remand or in preventive detention;
b.
receives a suspended custodial sentence the length of which exceeds the time spent on remand or in preventive detention.