The Department of Corrections shall compare the number of detention bed days each county paid in the preceding calendar year to the average number of detention bed days paid in calendar years 2013, 2014, and 2015. If the days paid in the calendar year in question exceed the average, the Department of Corrections shall pay the county two hundred dollars per day for each day exceeding the average. If the amount owed the participating counties exceeds the amount of money in the fund, the amount reimbursed per bed day shall be prorated to fulfill all requests.
SDCL 26-8D-24