def isShowcasable(pixels, duration, tomodify="duration"):
    """
    Calculate the speed, the mouse would need to reach and return True if it's considered feasible or a string precising what's wrong
    """

    MINSPEED = 40.0
    MAXSPEED = 2000.0

    speed = pixels / duration

    if (
        MINSPEED < speed < MAXSPEED or pixels == 0
    ):  # pixels = 0 means the capture is made without any computed move
        return True
    elif speed < MINSPEED:
        if tomodify == "duration":
            change = round(pixels / (MINSPEED + 1))
        else:
            change = duration * MINSPEED
        return f"Mouse move would be too slow: try {tomodify} : {change}"
    else:
        if tomodify == "duration":
            change = round(pixels / (MAXSPEED - 1))
        else:
            change = duration * MAXSPEED
        return f"Mouse move would be too fast: try {tomodify} : {change}"