update var name to 'ErrTimePeriod'

lowercase var

Invert condition so is not negative