The defendant, Lonnie Johns, pleaded guilty to unlawful manufacture of cannabis in violation of section 5(e) of the Cannabis Control Act (Ill. Rev. Stat. 1981, ch. 56 1/2, par. 705(e)). Defendant was sentenced to pay a fine of $700 pursuant to section 5-9-1.1 of the Unified Code of Corrections (Ill. Rev. Stat. 1981, ch. 38, par. 1005-9-1.1) and to imprisonment for a term of three years. The only issue on appeal concerns credit defendant should have received toward his fine and toward his imprisonment. The State concedes the validity of the defendant's arguments.
• 1, 2 Defendant was arrested on December 13, 1982, and was released on bond on December 14, 1982; therefore, the parties argue defendant should receive credit for one day of incarceration. We conclude, however, that the defendant is entitled to two days' credit: one for being incarcerated on December 13, 1982, and the other for being incarcerated on December 14, 1982. Section 5-8-7(b) of the Unified Code of Corrections (Ill. Rev. Stat. 1981, ch. 38, par. 1005-8-7(b) states: "The offender shall be given credit on the determinate sentence * * * for time spent in custody as a result of the offense for which sentence was imposed * * *." The foregoing section requires that credit be given for all time spent in custody for the same offense (see People v. Scheib (1979), 76 Ill.2d 244, 250, 390 N.E.2d 872, 875); however, no statutory provision or decided case indicates the manner in which the time should be calculated. We conclude that if defendant is held in custody for any part of a day, he should be granted credit against his sentence for that day. To hold otherwise would lead to arbitrary results, i.e., one sheriff might state that defendant was not in custody if he made bond prior to lunch, another might use the breakfast period as the cut-off point, and still another might use a certain hour of the day. Therefore, the circuit court of Union County is directed to issue an amended mittimus and judgment order reflecting the aforementioned credit. Defendant is also entitled to $10 credit toward his fine due to the two days of incarceration in the county jail. (See People v. Stevens (1984), 125 Ill. App.3d 516, 466 N.E.2d 296.) Therefore, if he has not been so credited, defendant should receive $10 credit towards his fine.