substitute
(2) However, a period mentioned in subsection (1) is not a detention period for an offender if—
(a) it includes any part of the following (an excluded period ):
(i) Christmas Day, Good Friday or Easter Sunday during which the offender is available to perform periodic detention;
(ii) another day prescribed by regulation; and
(b) the offender has performed, or is taken to have performed, periodic detention for—
(i) the detention periods immediately before and after the excluded period; or
(ii) if the excluded period is the last detention period of the periodic detention period for the offender's sentence of imprisonment—the detention period immediately before the excluded period.