code: def next_interval(self, after=None):
          
          if after is None:
              after = timezone.now()
          after = self.to_timezone(after)
          return next(self.intervals(range_start=after), None)
docs: Returns the next Period this event is in effect, or None if the event
          has no remaining periods.