Percentiles calculation

I need help to create a script for Percentiles calculation

Does someone know where I can get one?

Can anyone help me?