def time_human(x):
    """ Gets time as human readable """

    # Round time
    x = round(x, 2)

    for number, unit in [(60, "s"), (60, "min"), (24, "h"), (365, "days")]:
        if abs(x) < number:
            return f"{x:.2f} {unit}"
        x /= number
    return f"{x:.2f} years"