Algebra-filter: when will I get out of jail? (good time credit forumla)
October 31, 2008 10:25 AM Subscribe
Algebra-filter: help me create a formula to calculate "
good time credits" for California jails:
([{actual days in jail/4} - any remainder] x 2) + actual days in jail = number of days sentenced to jail
Solve for "actual"
Show your work
When my clients are "sentenced" to county jail, I know that they will serve about two-thirds of that sentence (i.e., 30 day sentence = 20 "actual" days). But there is a (relatively) complicated formula for determining the "actual days" which is, in fact, finding for the "days sentenced":
(((actual days in jail) divided by 4) less any remainder, i.e., rounded down) x 2) + actual days = sentence
or
([{A/4} - remainder] x 2) + A = S
So if someone is sentenced to 30 days, they serve 20:
(20/4 - remainder) x 2 + 20 =
(5 x 2) + 20 =
10 + 20 =
30
Or as the courts put it:
The proper method of calculating presentence custody credits is to divide by four the number of actual presentence days in custody, discounting any remainder. That whole-number quotient is then multiplied by two to arrive at the number of good/work credits. Those credits are then added to the number of actual presentence days spent in custody, to arrive at the total number of presentence custody credits. (People v. Smith (1989) 211 Cal.App.3d 523, 527; People v. Bravo, supra, 219 Cal.App.3d at p. 731.)
I want to find out how many days someone will actually spend in jail (actual days) based on how many days they are sentenced to serve (sentence).
posted by unclezeb to law & government (18 answers total) 2 users marked this as a favorite
[floor(a/4) * 2 ] + a = s
[floor(a/4) * 2 ] = s - a
floor(a/4) = (s - a) / 2 = s/2 - a/2
a = [ 4 * ( s/2 - a/2) ] + n, where n = 0, 1, 2, or 3
a = 2s - 2a + n, where n..
3a = 2s + n, where...
a = (2s + n)/3 = 2s/3 + n/3
since n < 3, n/3 = 0 or 1. We can't determine how that will go, since the floor function loses information. In your original scenario, assume someone actually serves 20, 21, 22, or 23 days.
Watch:
20 is shown in your own work.
21 is floor(21/4) * 2 + 20 = floor(5.25) * 2 + 20 = 5 * 2 + 20 = 30
22 is floor(22/4) * 2 + 20 = floor(5.5) * 2 + 20 = 5 * 2 + 20 = 30
23 is floor(23/4) * 2 + 20 = floor(5.75) * 2 + 20 = 5 * 2 + 20 = 30
posted by Lemurrhea at 10:57 AM on October 31, 2008