calculate tuq and query 90 per latencies