This appeal presents the question whether a state’s failure to provide a system of good-time credits for time spent in pretrial detention, while allowing such credits to sentenced prisoners, amounts to a denial of equal protection to those serving sentences who, unable to make bail because of indi-gency, were incarcerated prior to trial.
I. BACKGROUND
A. Proceedings in State and Federal District Courts
Appellant pled guilty in the Maine Superior Court to a five-count indictment charging violations of Maine law (theft, burglary and escape). He was sentenced to a total of eight years imprisonment. Appellant did not appeal from his conviction and sentence. However, he petitioned for state post-conviction review, contending that tit. 17-A of M.R.S.A. § 1253 violated the equal protection clause of the Fourteenth Amendment, as it allowed sentenced prisoners to earn good-time credits, but did not provide the same opportunity to those detained pri- or to trial because of inability to make bail. This, he argued, created a suspect class of indigent criminal defendants. Appellant’s claim was denied by the Maine Superior Court and the Maine Supreme Judicial Court denied a certificate of probable cause to appeal.
*821 Appellant then filed a habeas petition pursuant to 28 U.S.C. § 2254 in the federal district court, making the same contention raised in his state habeas motion. The district court dismissed the petition and denied a certificate of probable cause. We granted such a certificate, believing that the constitutionality of § 1253 amounted to a question of sufficient substance to deserve appellate scrutiny. We now affirm the judgment of the district court.
B. Maine Statutory Provisions
17-A M.R.S.A. § 1253(1) (Calculation of period of imprisonment) provides:
The sentence of any person committed to the custody of the Department of Corrections shall commence to run on the date on which that person is received into the correctional facility designated as the initial place of confinement by the Commissioner of Corrections pursuant to section 1258. That day is counted as the first full day of the sentence.
However, a sentenced person who has been detained awaiting trial or sentencing is entitled to receive “a day-for-day deduction from the total term of imprisonment....” Id. § 1253(2).
Different categories of good-time credit are available for sentenced prisoners but no good-time credit is extended to pretrial detainees. Thus, sentenced prisoners receive a fixed amount of credit (ten days per month for sentences of more than six months and three days per month for sentences of six months or less) “for observing all rules of the department and institution.” Id. § 1253(3), (3-B). For sentenced prisoners “who are assigned work and responsibilities within the institution or program” in which he or she has been placed, an additional three days per month may be deducted if the work or responsibilities “are deemed to be of sufficient importance to warrant those deductions.... ” Id. § 1253(4). Finally, an additional two days per month may be deducted for sentenced inmates participating in “minimum security community programs.” Id. § 1253(5). Pursuant to § 1253(6), the credit awarded under subsections 3 and 3-B “may be withdrawn by the supervising officer of the institution for the infraction of any rule of the institution, for any misconduct or for the violation of any law of the State.”
The period from which the good-time credit deduction is made “shall be calculated from the first day the person is delivered into the custody of the department [of corrections]_” Id. § 1253(3). Pursuant to subsection (1), supra, this is the day a defendant’s sentence begins to run. As already noted, therefore, in computing the amount of good-time credit to which a defendant is entitled, the statute does not permit credit for any time spent in pretrial detention. Thus, a defendant who remained free on bail pending trial may have more good-time credit offset against his total sentence than a similarly sentenced prisoner who was detained prior to trial due to indigency. Appellant claims that this difference amounts to a wealth-based distinction that violates the equal protection of the laws guaranteed by the Fourteenth Amendment of the federal constitution.
II. DISCUSSION
In
McGinnis v. Royster,
The Court in determining whether New York’s statutory scheme violated equal protection stated,
We note ... that the distinction of which appellees complain arose in the course of the State’s sensitive and difficult effort to encourage for its prisoners constructive future citizenship while avoiding the danger of releasing them prematurely upon society. The determination of an optimal time for parole eligibility elicited multiple legislative classifications and groupings, which the court below rightly concluded require only some rational basis to sustain them. Ap-pellees themselves recognize this to be the appropriate standard. For this Court has observed that “[t]he problems of government are practical ones and may justify, if they do not require, rough accommodations — illogical, it may be, and unscientific.” We do not wish to inhibit state experimental classifications in a practical and troublesome area, but inquire only whether the challenged distinction rationally furthers some legitimate, articulated state purpose. We conclude that it does.
Id.
at 269-70,
The Court went on to point out that pretrial detainees were held in detention centers which did not offer rehabilitation services, while state prisons provided such services.
Id.
at 271,
The Court noted that while prisoner discipline might be the “primary” focus of the New York good-time scheme, rehabilitation was also a purpose.
Id.
at 276,
Courts addressing claims similar to the present have commonly relied on the analysis in
McGinnis.
For example, in
State v. Aqui,
*823
The New Mexico court, like the Supreme Court in
McGinnis,
applied the rational relationship test. It stated that good time credit was aimed at “ ‘enhancing] the rehabilitation, education and vocational skills of inmates through productive involvement in enterprises and public
works...." Id.
at 775 (quoting N.M.S.A. 1978, § 33-8-3 (Repl.Pamp.1983)). It pointed out that the facilities in which convicted persons are held were equipped to record and evaluate a prisoner’s performance in determining whether to award good time credit. It distinguished pretrial detention on two grounds. First, as
McGinnis
had pointed out, pretrial detainees are presumed innocent and may not be compelled to work. Second, also as in
McGinnis,
the record-keeping requirements concerning behavior of pretrial detainees were minimal.
Id.
The Tenth Circuit recently upheld the
Aqui
analysis in
Lemieux v. Kerby,
The court of appeals rejected this argument. It stated that “even if the primary purpose behind § 33-2-34, the ‘good time’ credit provision, is to encourage good behavior as a means of keeping order, such a goal is not inconsistent with a legislative desire to rehabilitate society’s criminals. Certainly a key component of any successful rehabilitation is helping inmates learn how to properly behave.”
Another case applying a rational relationship analysis is
People v. Turman,
Although the question of good-time “implicate[d] a liberty interest,” the court concluded that it was not a “fundamental one.”
According to the Turman court,
[although it is true that the state has an interest in maintaining discipline in both places of incarceration [i.e., pretrial detention and post-conviction prison], it does not necessarily follow that any difference in the means of maintaining it is irrational. The legislature might well have concluded that an added incentive for good behavior is necessary after conviction and sentencing, but that such an incentive is not necessary when the pretrial detainee has before him the prospect of a sentencing hearing in which the judge may consider his behavior while incarcerated.
Id. at 1373 (footnote omitted). The court pointed out that the Colorado statute awarded good-time credits to a prisoner who has “ ‘committed no infractions of the rules or regulations ... and who performs in a faithful, diligent, industrious, orderly, and peaceable manner the work ... assigned to him....” Id. at 1371 (quoting C.R.S. § 17-20-107) (emphasis added). Thus, one of the purposes was rehabilitation. Id. at 1373.
We conclude that § 1253 passes constitutional muster. State legislation is “presumed to be valid.”
City of Cleburne
*824
v. Cleburne Living Center, Inc.,
Not to allow credit for good-time spent in pretrial detention is clearly not irrational. As the
Turman
court observed, it is reasonable for a state legislature to conclude that a sufficient incentive for good behavior in the pretrial detention setting is provided by the prospect of being sentenced to a longer term of imprisonment based on a detainee’s behavior while so incarcerated.
See
The
McGinnis
Court stressed that
rehabilitation
was a goal of the system in issue there; here the Maine legislature has not expressly mentioned “rehabilitation” in § 1253(3) and (3-B). However, this omission does not mean that rehabilitation may not have been an unstated goal of this category of good-time credit. As the
Lemieux
court pointed out, good behavior is a component of rehabilitation.
See
Affirmed.
Notes
. The
McGinnis
Court noted that New York had changed its law and abolished the consideration of good-time in the calculation of a minimum parole date. Under the new law, a prisoner appeared before the Parole Board when his minimum term expired regardless of how much time the prisoner had spent in pretrial detention or how much good-time credit had been earned. The inmates in
McGinnis
were allowed to elect this new law but did not. The Court pointed out that as a result of the change in the law the inmates were in the same position as those who were let out on bail and who were convicted for offenses committed after the new law took effect.
Id.
at 269,
