Fix calculation error that would not allow loginTimeout to go to zero.