[240A [Time remanded on bail to count towards time served]: terms of imprisonment and detention]
[240A [Time remanded on bail to count towards time served]: terms of imprisonment and detention]

[(1)     This section applies where—

(a)     a court sentences an offender to imprisonment for a term in respect of an offence . . .,

(b)     the offender was remanded on bail by a court in course of or in connection with proceedings for the offence, or any related offence, after the coming into force of section 21 of the Criminal Justice and Immigration Act 2008, and

(c)     the offender's bail was subject to a qualifying curfew condition and an electronic monitoring condition (“the relevant conditions”).

(2)     Subject to [subsections (3A) and (3B)], the court must direct that the credit period is to count as time served by the offender as part of the sentence.

[(3)     The credit period is calculated by taking the following steps.

Step 1

Add—

(a)     the day on which the offender's bail was first subject to the relevant conditions (and for this purpose a condition is not prevented from being a relevant condition by the fact that it does not apply for the whole of the day in question), and

(b)     the number of other days on which the offender's bail was subject to those conditions (but exclude the last of those days if the offender spends the last part of it in custody).

Step 2