Ping interval calculation