adaptive wait time