code: def expiration_time(self):
          
          logging_forgotten_time = configuration.behavior.login_forgotten_seconds
  
          if logging_forgotten_time <= 0:
              return None
  
          now = timezone.now()
          delta = now - self.modified
          time_remaining = logging_forgotten_time - delta.seconds
  
          return time_remaining
docs: Returns the time until this access attempt is forgotten.