As stated in article R. 61-5 of the Code of Criminal Procedure, when the socio-judicial supervision accompanies a custodial sentence, the period during which the convicted person is on temporary leave, or is placed under the semi-liberty regime or is subject to external placement or placement under electronic surveillance does not count towards the duration of the socio-judicial supervision.