In a decision that affects the prison terms of nearly 200,000 inmates in federal prisons, the U.S. Supreme Court on Monday adopted a formula for calculating “good time credit” for good behavior that results in more time served.

The Court by a 6-3 vote endorsed a long-standing Bureau of Prisons method of calculating good time credit based on the length of time actually served, not the length of the term imposed by the sentencing judge. As Justice Stephen Breyer described it in his majority opinion in the case, Barber v. Thomas, the formula preferred by the Court would result in 470 days of credit for a well-behaved prisoner serving a 10-year sentence, while the method urged by defendants would result in 540 days of credit.