OPINION
In three issues, appellant Jerry Don Snodgrass, Jr. appeals the trial court’s denial of credit for time served in its judgment revoking community supervision and the trial court’s original imposition of community supervision. We affirm the trial court’s judgment as modified.
I. Background
Appellant was arrested on February 13, 2014, for possession of less than one gram of methamphetamine. He posted bond the next day and was released but was rearrested on June 16, 2014. He remained incarcerated from that day until trial was held on June 8, 2015.
In January of 2015, Appellant filed a “Waiver of Right to Suspended Sentence Under Code [of] Criminal Procedure Article 42.12 [Section] (15)(a)” in which he .stated that he “waive[d] the right to be placed on probation and represented] to the Court that [he was] unable or unwilling to comply with any of the conditions of probation that the Court may impose.” At trial, Appellant pleaded guilty and asked that a jury assess punishment. The jury assessed punishment at 12 months’ confinement in state jail, but the trial court suspended the sentence for five years and placed Appellant on community supervision. Appellant did not appeal the trial court’s decision to suspend his sentence and place him on community supervision.
As a condition of community supervision, Appellant was ordered to complete a rehabilitation program at the substance abuse felony punishment (SAFP) facility. Appellant remained in jail until he was transported to the SAFP facility on August 11, 2015, but was discharged from the facility two days later on August 13, 2015, for refusing to participate. The State filed a motion to revoke community supervision on August 20, 2015, and Appellant was held in jail for 34 days pending the revocation hearing. At the hearing, Appellant pleaded true to violating the terms of community supervision by failing to comply with the facility’s rules, regulations, and treatment programs. The trial court revoked his community supervision and sentenced him to eleven months in the . state jail facility with no credit for any time served.
II. Discussion
In his first issue, Appellant argues that the trial court erred in refusing to grant him credit for time served in the county jail awaiting trial and for the time served in the county jail while awaiting the revocation hearing.
A. Credit for time served August 20, 2015-September 22, 2015
As for the time served while awaiting the revocation hearing, the State concedes that Appellant should have been credited for the time spent confined between the date the motion for revocation was filed on August 20, 2015, and the date the hearing was held on September 22, 2015. See In re Bates, 978 S.W.2d 575, 578 (Tex.Crim.App.1998). We agree, and, therefore, we sustain the first part of Appellant’s first issue as to these 34 days served in county jail and order the judgment be reformed to give Appellant credit for this time. Tex.R.App. P. 43.2(b).
As for the 358 days Appellant served from the date of his rearrest on June 16, 2014, until the date of sentencing on June 8, 2015, the code of criminal procedure gives the trial court discretion whether to grant credit for time served. Tex.Code Crim. Proc. Ann. art. 42.12 § 15(h)(2) (West Supp.2015). However, there are constitutional limits to the exercise of this discretion.
In Williams v. Illinois, the United States Supreme Court held that a state may not imprison an indigent defendant beyond the statutory maximum sentence for the defendant’s failure to pay a fíne assessed as part of his punishment. 399 U.S. 235, 241, 90 S.Ct. 2018, 2022, 26 L.Ed.2d 586 (1970). The court reasoned that doing so would constitute “invidious discrimination solely because [the defendant] is unable to pay the fíne,” thereby violating the equal protection clause because it would result in different consequences for poor defendants. Id.
The court of criminal appeals has extended the reasoning of Williams in holding that indigent defendants who are sentenced to the statutory maximum
Two decades later in Bates, the court of criminal appeals further clarified its reasoning when it declined to order credit be given for pretrial time served because the defendant had not been assessed the maximum punishment “and would not be required to serve more than the maximum permissible term even if the pretrial jail time were added to the term assessed.” Bates, 978 S.W.2d at 577. Relying on this statement in Bates, Appellant argues that he is entitled to credit for the 358 days
Because we agree neither with Appellant’s method of calculating his time served nor with his calculation of the number of days that would constitute a maxi
According to the record, Appellant spent the following time periods in the county jail:
[[Image here]]
Adding together the total number of days Appellant served in the county jail prior to trial (358) and while awaiting a hearing on the State’s motion to revoke (34) equals 392 days served. Upon revocation, the trial court sentenced Appellant to 11 months, or 330 days.
By defining one month as 30 days and by further defining two years as 24 months, Appellant argues that the calculation in days of the maximum two-year sentence should be determined by multiplying 30 days by 24 months, which equals 720 days. Thus, according to Appellant’s calculations, the number of days he would be required to serve
Thus, considering these two principles— that a month equals 30 days, that twelve months equal 360 days, but a year equals 365 days — to correctly calculate the number of days that would comprise the maximum sentence in this case, we must determine whether the maximum penalty range for this offense is stated in years or months. Section 12.35(a) of the penal code provides that a person adjudged guilty of a state jail felony shall be punished by confinement in a state jail for a term of “not more than two years.” Tex. Penal Code Ann. § 12.35(a). Therefore, applying the correct formula, the maximum number of days which Appellant could have been sentenced to serve here is 730 — 365 days multiplied by two years — not 720, the number Appellant reaches by multiplying 30 days by 24 months. Id.
Because, by our calculations, even including the 34-day prerevocation period— the denial of credit for which we have already held was error — Appellant’s possible service is eight days shy of the maximum sentence, we disagree that Appellant is constitutionally entitled to credit for time served prior to sentencing.
C. Imposition of community supervision
In his second issue, Appellant argues that the trial court erred in imposing community supervision because he had waived his right to community supervision. The State argues that Appellant forfeited this argument by failing to appeal the original judgment imposing community supervision. See, e.g., Manuel v. State, 994 S.W.2d 658, 661 (Tex.Crim.App.1999) (holding that issues related to a conviction, such as evidentiary sufficiency, must be raised at the time community supervision is originally imposed). Appellant conceded at oral argument that he forfeited this issue. We therefore overrule Appellant’s second issue.
D. Constitutionality of article 42.12, section 15(h)(2)
In his third issue, Appellant argues that article 42.12, section 15(h)(2) of the code of criminal procedure is unconstitutional by allowing the trial court the discretion to deny credit for time served. His argument can be divided into two su-bissues: (1) that the statute is unconstitutional as it relates to time served between the date a defendant is arrested pursuant to a State’s motion to revoke community supervision and the hearing on the motion to revoke, and (2) that it is unconstitutional in its entirety.
Regarding his first subissue, the court of criminal appeals has held that section 15(h)(2) is unconstitutional as applied to credit for time spent confined pending a motion for revocation of community supervision. Bates, 978 S.W.2d at 578. We have sustained Appellant’s first issue in part on this basis and have ordered that he be credited for the time spent in jail from the date the motion for revocation was filed to the date community supervision was revoked.
As for Appellant’s argument that article 42.12, section 15(h)(2) is unconstitutional “in all respects,” the Appellant did not raise this argument before the trial court. To preserve a complaint for our review, a party must have presented to the trial court a timely request, objection, or motion that states the specific grounds for the desired ruling if they are not apparent from the context of the request, objection, or motion. Tex.R.App. P. 33.1(a)(1); Douds v. State, 472 S.W.3d 670, 674 (Tex.Crim.App.2015); Sanchez v. State, 418 S.W.3d 302, 306 (Tex.App.-Fort Worth 2013, pet. ref'd). Further, the trial court must have ruled on the request, objection, or motion, either expressly or implicitly, or the complaining party must have objected to the trial court’s refusal to rule. Tex. R.App. P. 33.1(a)(2); Everitt v. State, 407 S.W.3d 259, 263 (Tex.Crim.App.2013).
“[A] challenge to the constitutionality of a statute is a forfeitable right and must be preserved in the trial court during or after trial.” Holmes v. State, 380 S.W.3d 307, 308 (Tex.App.-Fort Worth 2012, pet. ref'd); see Ibenyenwa v. State, 367 S.W.3d 420, 422 (Tex.App.-Fort Worth 2012, pet. ref'd) (op. on reh’g); Korenev v. State, 281 S.W.3d 428, 434 (Tex.Crim.App.2009). Both facial and “as applied” challenges must be raised in the trial court in order to preserve error. Reynolds v. State, 423 S.W.3d 377, 383 (Tex.Crim.App.2014); see Flores v. State, 245 S.W.3d 432, 437 n.14 (Tex.Crim.App.2008) (noting the “well-established requirement that appellant must preserve an ‘as applied’ constitutional challenge by raising it at trial”).
III. Conclusion
Having sustained in part Appellant’s first issue insofar as it denies credit for time served between the date of the filing of the motion for revocation and the hearing on the same, we order that the trial court’s judgment be reformed to reflect a credit of 34 days. Having overruled Appellant’s remaining issues, we affirm the trial court’s judgment as modified.
. Here, Appellant was not sentenced to the statutory maximum sentence of two years. See Tex. Penal Code Ann. § 12.35(a) (West Supp.2015) (setting the maximum duration for a state jail felony at two years' confinement). Rather, the jury initially assessed a 12-month sentence, but upon revocation, the trial court sentenced him to eleven months in the state jail facility.
. Appellant contends that he is entitled to 359 days of credit for the time he spent in jail between his rearrest on June 16, 2014, and the trial held on June 8, 2015. He does not explain how he reaches this number, and we disagree with his calculation.
. As is further discussed below, the court of criminal appeals has defined a "month” as being 30 days in duration. McKinney v. State, 66 S.W. 769, 770-71, 43 Tex.Crim. 387, 390 (1902); see also, Presley v. State, 538 S.W.2d 624, 626 (Tex.Crim.App.1976); Lurie v. State, 288 S.W.2d 505, 506, 162 Tex.Crim. 604, 606 (Tex.Crim.App.1956).
.We calculate that Appellant would serve a total of 722 days, which — if we accepted Appellant's 720-day premise — would exceed the maximum sentence by 2 days. Because Appellant calculates that he is entitled to 359 days of credit for the time he spent in jail between his rearrest on June 16, 2014, and the trial held on June 8, 2015, he contends that he would serve a total of 723 days and exceed the maximum sentence by 3 days. Even if we assumed that Appellant would serve 723 days, the result would not change.
. At common law, the “lunar month” of 28 days was used to define the number of days in a month. McKinney, 66 S.W. at 770, 43 Tex. Crim. at 389.
. Using a calendar method of calculation, the court explained, "If it begins on the 5th of February, it would end on the 5th of March, although but twenty-eight days have elapsed, leap year being excepted. Or if it begins qn the 5th of February during leap year, it would end on the 5th of March, although twenty-nine days elapse. If it begins on the 5th of June, it would end on the 5th of July, although thirty days had elapsed.” Id., 43 Tex. Crim. at 389, 66 S.W. 769.
. The court illustrated the problem as follows: "Should A. be prosecuted for an aggravated assault, and should the verdict be one month, instead of thirty days, as in the case at bar, but his trial occurred in January, he would be incarcerated for thirty-one days. If it occurred in February, he would have the good fortune of only having to serve twenty-eight days, unless it be leap year; and, if he was so unlucky as to be tried during leap year, he would have to serve one more day than otherwise, if his trial were in February. Therefore the day when he is tried would decide whether he stayed in jail thirty-one days, or thirty, twenty-nine or twenty-eight days. Or it may be he was tried in a month of thirty-one days, and if he fails to appeal he would stay in jail thirty-one days; but should he give notice of appeal, and this court should decide his case in February, he would be the winner by three days, unless he should be so unfortunate as to have this court decide his case during a leap year.” Id., 43 Tex.Crim. at 389, 66 S.W. 769.
. Section 311.014(c) of the Act provides:
(c) If a number of months is to be computed by counting the months from a particular day, the period ends on the same numerical day in the concluding month as the day of the month from which the computation is begun, unless there are not that many days in the concluding month, in which case the period ends on the last day of that month.
Tex. Gov't Code Ann. § 311.014(c) (West 2013).
. However, we have recently departed from Lopez by also not applying the Code Construction Act in computing days of time served. Compare White v. State, No. 02-15-00281-CR, 2016 WL 354107, at ⅜1 (Tex.App.-Fort Worth Jan. 28, 2016, no pet.) (mem.op.), with Lopez, 651 S.W.2d at 933 (applying former article 5429b-2, section 2.04(a), the predecessor to
. Even if we were to accept Appellant’s calculation that he has served 393 days in jail, he would still be seven days shy of the maximum sentence.
. Appellant does not contend that he was indigent at this time, nor does he argue that these days should be included. Appellant was released on bond on February 14, 2014. We note that the result would not change if we were to include this time served.
. Appellant concedes he is not entitled to credit for this time served as a condition of his community supervision sentence. See Harris, 946 S.W.2d at 80 (holding that a defendant is not entitled to credit for time served as a condition of probation).
