Improved latency calc - reduce effect of drift
Fix to latency calc introduced in last commit - floats not ints!