def dt_end(self): duration = self.duration if not isinstance(duration, datetime.timedelta): duration = timedelta_parse(duration) return self.dt_start + duration