add query for timeout calculation gone wrong

Change-Id: I521af8949ba888aa3e747bc04aec5ed41fbf0571
Related-Bug: #1326231