calculating percentile