def find_x_intercept(gradient:int, y_intercept:int, height:int):
    """
    Find x intercept of the line with the bottom of the image from the line parameters
    :param gradient: gradient of line
    :param y_intercept: y intercept of line
    :param height: height of the image
    :return: x intercept of line with the bottom of the image
    """
    return (height - 1 - y_intercept) / gradient if gradient != 0 else -1