"(1) This section applies where after the commencement of this section a court passes a life sentence in circumstances where the sentence is fixed by law. (2) The court must, unless it makes an order under subsection (4), order that the provisions of section 28(5) to (8) of theCrime (Sentences) Act 1997 (referred to in this Chapter as 'the early release provisions') are to apply to the offender as soon as he has served the part of his sentence which is specified in the order. (3) The part of his sentence is to be such as the court considers appropriate taking into account— (a) the seriousness of the offence, or of the combination of the offence and any one or more offences associated with it, and (b) the effect of any direction which it would have given under section 240 (crediting periods of remand in custody) if it had sentenced him to a term of imprisonment."
"(1) This section applies where— (a) a court sentences an offender to imprisonment for a term in respect of an offence committed after the commencement of this section, and (b) the offender has been 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 ... ... (3) Subject to subsection (4), the court must direct that the number of days for which the offender was remanded in custody in connection with the offence or a related offence is to count as time served by him as part of the sentence. ... (5) Where the court gives a direction under subsection (3), it shall state in open court— (a) the number of days for which the offender was remanded in custody, and (b) the number of days in relation to which the direction is given."