def declare_time(head):
    """Determine the maximum/minimum age of the files
       It does this through converting the specified
       age to days.
    """
    types = ['y', 'mon', 'w', 'd', 'h', 'min', 's']
    for item in types:
        if item in head[0]:
            if item == 'y':
                age = float(head[0][0:len(head) - 2]) * 365
            if item == 'mon':
                age = float(head[0][0:len(head) - 4]) * 30
            if item == 'w':
                age = float(head[0][0:len(head) - 2]) * 7
            if item == 'd':
                age = float(head[0][0:len(head) - 2])
            if item == 'h':
                age = float(head[0][0:len(head) - 2]) / 24
            if item == 'min':
                age = float(head[0][0:len(head) - 4]) / 24 / 60
            if item == 's':
                age = float(head[0][0:len(head) - 2]) / 24 / 60 / 60
    return age
