calculate traffic