minor change to sentence ratio calculation