Modification of section 240 (crediting of periods of remand in custody)

5.  Section 240(1) (application of section) is modified as if for paragraph (b) there were substituted—

(b)the offender has been—

(i)remanded in custody (within the meaning given by section 242) in connection with the offence or a related offence, that is to say, any other offence the charge for which was founded on the same facts or evidence, or

(ii)kept in service custody in connection with the offence or a related offence, that is to say, any other offence the charge for which was founded on the same facts or evidence, for any period since being charged with the offence or a related offence.