A prisoner shall be released at the expiration of the term of sentence less the time deducted for good conduct. A certificate of deduction shall be entered on the commitment by the warden, keeper, or the commissioner.