section 742.6(15)


742.6(15) If the allegation is withdrawn or dismissed or the offender is found to have had a reasonable excuse for the breach, the sum of the following periods is deemed to be time served under the conditional sentence order: (a) any period for which the running of the conditional sentence order was suspended; and (b) if subsection (12) applies, a period equal to one half of the period that the conditional sentence order runs while the offender is detained under an order referred to in that subsection.