compute the correct number of test
“timeout” is a parameter