def __cmp__(self, other):
assert type(self) == type(other), "<STR_LIT>" % str((type(self), type(other)))<EOL>s = (self.years * <NUM_LIT:12> + self.months) * <NUM_LIT> + self.days<EOL>o = (other.years * <NUM_LIT:12> + other.months) * <NUM_LIT> + other.days<EOL>return s - o<EOL>
compare BusinessPeriods, comparison by (years*12+months)*31+days

        :param BusinessPeriod other:
        :return: int