calculation the interval time of data receiving