Add condition to check time and distance intervals in Settings