@property
def expiry_date(self):
    if ((self.is_archived or (self.end_time is None)) and (self.progress != (- 1))):
        return None
    if (self.progress == (- 1)):
        initial_date = self.start_time
    else:
        initial_date = (self.last_extended if self.last_extended else self.end_time)
    return (initial_date + timedelta(days=settings.VALIDATION_EXPIRY_DAYS))
@property
def expiry_date(self):
    if ((self.is_archived or (self.end_time is None)) and (self.progress != (- 1))):
        return None
    if (self.progress == (- 1)):
        initial_date = self.start_time
    else:
        initial_date = (self.last_extended if self.last_extended else self.end_time)
    return (initial_date + timedelta(days=settings.VALIDATION_EXPIRY_DAYS))