code: def get_next_invalid_time_from_t(self, timestamp):
          if not self.is_time_valid(timestamp):
              return timestamp
          t_day = self.get_next_invalid_day(timestamp)
          if timestamp < t_day:
              sec_from_morning = self.get_next_future_timerange_invalid(t_day)
          else:
              sec_from_morning = self.get_next_future_timerange_invalid(timestamp)
          if t_day is not None and sec_from_morning is not None:
              return t_day + sec_from_morning + 1
          if t_day is not None and sec_from_morning is None:
              return t_day
          timestamp = get_day(timestamp) + 86400
          t_day2 = self.get_next_invalid_day(timestamp)
          sec_from_morning = self.get_next_future_timerange_invalid(t_day2)
          if t_day2 is not None and sec_from_morning is not None:
              return t_day2 + sec_from_morning + 1
          if t_day2 is not None and sec_from_morning is None:
              return t_day2
          return None