converts a number of seconds to days

def _seconds_to_days(cls, val, **kwargs):
        '''
        converts a number of seconds to days
        '''
        zero_value = kwargs.get('zero_value', 0)
        if val is not None:
            if val == zero_value:
                return 0
            return val / 86400
        else:
            return 'Not Defined'