Persons convicted of a felony as defined by chapter
9A.20 RCW and committed to the care and custody of the department of corrections shall be the financial responsibility of the department of corrections not later than the eighth day, excluding weekends and holidays, following sentencing for the felony and notification that the prisoner is available for movement to a state correctional institution. However, if good cause is shown, a superior court judge may order the prisoner detained in the jail beyond the eight-day period for an additional period not to exceed ten days. If a superior court orders a convicted felon to be detained beyond the eighth day following sentencing, the county or city shall retain financial responsibility for that ten-day period or portion thereof ordered by the court.