Depending on the jurisdiction, the standard for the "real length of time served" is 85% of the imposed sentence.
https://www.inmateaid.com/ask-the-inmate/if-you-are-sentenced-to-3-to-5-how-much-time-do-you-have-to#answer
Accepted Answer Date Created: December 02,2015