Except as provided in § 53.1-114, the expenses of operating and maintaining a jail or jail farm and supporting the prisoners working thereon, including board, clothing and medical attention, shall be borne by the participating political subdivisions. Such participation shall be based on the percentage of the total cost for such operation that the number of prisoner days bears to the total number of prisoner days confined therein, plus their proportionate part of the fixed cost for such maintenance and operation.
Va. Code § 53.1-112