Subsection (2) applies where—
in connection with the offence or any other offence the charge for which was founded on the same facts or evidence.
In determining the term of the detention and training order, the court must take account of the period for which the offender was so remanded.
If the court proposes to make two or more detention and training orders in respect of two or more offences—
A period of remand may be taken account of under this section only once.
For the purposes of this section, an offender is remanded in custody when—
For the purposes of this section, “qualifying curfew condition” and “electronic monitoring condition” have the same meanings as in section 325 (direction for time on bail under certain conditions to count as time served): see section 326(3).