def as_reasonable_unit(self):
        delivery_time = self.as_hours()

        if delivery_time.max > 1440:               # > 2 months
            return delivery_time.as_months()
        elif delivery_time.max > 168:              # > 1 week
            return delivery_time.as_weeks()
        elif delivery_time.max > 48:               # > 2 days
            return delivery_time.as_days()
        else:
            return delivery_time
Returns the delivery time as reasonable unit based on the max hours.
dataset/ETHPy150Open diefenbach/django-lfs/lfs/catalog/models.py/DeliveryTimeBase.as_reasonable_unit