Update CalcLatency to work in terms of edge latencies, rather than