This section applies where the court dealing with an offender for an offence imposes, or is considering whether to impose, an extended sentence of imprisonment under section 279.
The appropriate custodial term is the term of imprisonment that would be imposed in respect of the offence in compliance with section 231(2) (length of discretionary custodial sentences: general provision) if the court did not impose an extended sentence of imprisonment.
The term of the extended sentence of imprisonment must not exceed the maximum term of imprisonment with which the offence is punishable.