(1) If, upon findings of fact and conclusions of law, a court finds that an in-state prisoner’s sentence has been miscalculated, the court may order the sentence to be recalculated consistent with the court’s findings and conclusions.
(2)  The court may order the prisoner released under this section only if the prisoner would be entitled to release due to expiration of his sentence correctly calculated.