caculate through and latency over time