fix error in timeout computation

Missed else caused failures less than 10 but not a
multiple of 5 (i.e. 1) to be given a full day timeout.

Added test to catch error.

Bug: 26268204
Change-Id: I56d6cfb213bde77ab03540a5f55ffc9d1ee8dc91
2 files changed