A reference in section 5A to a median sentence for sentences imposed for an offence is to a median where—
(a) both custodial and non-custodial sentences are considered, other than sentences imposed—
(i) on an offender for an offence committed when he or she was under the age of 18; or
(ii) for an offence heard and determined summarily; and
(b) if a total effective sentence is imposed in respect of 2 or more sentences, at least one of which is for a relevant offence, the term of the individual sentence for any such relevant offence is treated as the term of the sentence for that offence; and
(c) the length of that part of a partially suspended term of imprisonment that is not held in suspense is treated as the term of the sentence; and
(d) a wholly suspended term of imprisonment is treated as a non-custodial sentence; and
(e) a non-custodial sentence is treated as a term of imprisonment of zero months.