847, 848 (Minn.App.1999) (citation omitted). Awards of jail credit are governed by principles of fairness and equity and must be determined on a case-by-case basis. State v. Dulski, 363 N.W.2d 307, 310 (Minn.1985). A defendant has the burden of establishing that he is entitled to jail credit for a specific period of time. State v. Willis, 376 N.W.2d 427, 428 n. 1 (Minn.1985). A defendant is entitled to jail credit for “all time spent in custody in connection with the offense or behavioral incident for which sentence is imposed.” Minn.R.Crim. P. 27.03, subd. 4(B). Caselaw and sentencing guidelines provide, however, that an offender is not entitled to jail credit for time spent in a treatment facility as a condition of probation. See State v. Peterson, 359 N.W.2d 708, 710 (Minn.App.1984) (<HOLDING>), review denied (Minn.Mar. 13, 1985); Minn.
holding that a defendant who does not receive concurrent sentences on multiple charges  is not entitled to have his jail time credit pyramided by being given credit on each sentence for the full time he spends in jail awaiting disposition he is only entitled to jail credit on the first of the consecutive sentences quoting daniels v state 491 so2d 543 545 fla1986 holding that a youth detention facility was a jail for purposes of statute requiring credit for time served in jail while awaiting trial holding defendant who received treatment in a state hospital was not entitled to jail credit for that time holding that a defendant is entitled to credit only for periods in which defendant is in actual or constructive control of jail or prison officials holding that jail credit may be granted for presentence custodial period spent under a civil commitment order at state security hospital and observing that denying credit for time relating to probationary conditions is not inconsistent with that holding