def format_delta(delta):
    days = delta / (60 * 60 * 24)
    hours = delta / (60 * 60)
    mins = 60 / delta

    if days == 1:
        return "%d day" % days
    elif days > 1:
        return "%d days" % days
    elif hours == 1:
        return "%d hour" % hours
    elif hours > 1:
        return "%d hours" % hours
    elif mins == 1:
        return "%d min" % mins
    elif mins > 1:
        return "%d mins" % mins
    else:
        return "just now"
dataset/ETHPy150Open berrange/gerrymander/gerrymander/format.py/format_delta/swapped operands of `/`