Compute the max_runtime timeout from the expected test duration.