Every person who may be imprisoned in the county jail for failure to pay a fine and costs, or either, under sentence imposed upon conviction for crime shall be entitled to receive, together with subsistence, a credit on such fine and costs, or either, as the case may be, in proportion to the time such person may be imprisoned.
Fla. Stat. § 951.16