calculate bmi and percentile