Amend CSSB 365 by adding an appropriately numbered SECTION to read as follows and by renumbering existing SECTIONS accordingly: SECTION ____. (a) Subchapter A, Chapter 501, Government Code, is amended by adding Section 501.0081 to read as follows: Sec. 501.0081. DISPUTE RESOLUTION: TIME-SERVED CREDITS. (a) The department shall develop a system that allows resolution of a complaint by an inmate who alleges that time credited on the inmate's sentence is in error and does not accurately reflect the amount of time-served credit to which the inmate is entitled. (b) Except as provided by Subsection (c), an inmate may not in an application for a writ of habeas corpus under Article 11.07, Code of Criminal Procedure, raise as a claim a time-served credit error until: (1) the inmate receives a written decision issued by the highest authority provided for in the resolution system; or (2) if the inmate has not received a written decision described by Subdivision (1), the 180th day after the date on which under the resolution system the inmate first alleges the time-served credit error. (c) Subsection (b) does not apply to an inmate who, according to the department's computations, is within 180 days of the inmate's presumptive parole date, date of release on mandatory supervision, or date of discharge. An inmate described by this subsection may raise a claim of time-served credit error by filing a complaint under the system described by Subsection (a), or if an application for a writ of habeas corpus is not otherwise barred, by raising the claim in that application. (b) The change in law made by this section applies only to a claim made on or after January 1, 2000, that alleges a time-served credit error, as described by Section 501.0081, Government Code, as added by this section. A claim made before January 1, 2000, that alleges a time-served credit error, is covered by the law in effect when the claim is made, and the former law is continued in effect for this purpose.