def get_active_days(self): """Return the amount of days the segment has been active.""" return count_active_days(self.enable_date, self.disable_date)
def active_days(enable_date, disable_date): return count_active_days(enable_date, disable_date)