From each person who is or was a prisoner, not more than the actual per-day cost of maintaining that prisoner, as set by the county board by ordinance, for the entire period of time that the person is or was confined in the jail, including any period of pretrial detention.