In this case, appellant appealed the denial of custody credits for the time he spent in a residential drug treatment as a condition of pretrial release. However, the record on appeal does not establish whether the program was “custodial,” so the Court of Appeal remanded for the trial court to determine if appellant is entitled to those credits for the time spent in those programs.