How are latencies calculated in iDash?