Determination of sentence