pct: script to calc percentiles