Calculate the percentile rank