Fixed Argument Exception in Timeout calculation