def duration(self):
        if self.start and self.end:
            dur = self.end - self.start
            dur = datetime.timedelta(dur.days,dur.seconds)
            return dur
        else:
            return None