def percentage_checker(val_a, val_b, percentage=80, a_bigger_then_b=True):
    """
    This method checks if val_a is larger or smaller than a percentage of val_b
    :param int val_a:
    :param int val_b:
    :param int percentage: What should be the percentage of val_b in val_a
    :param bool a_bigger_then_b: Direction of the formula
    :return float:
    """
    try:
        val_b_percentage = float(val_b * percentage) / float(100)
        if a_bigger_then_b:
            return float(val_a) >= float(val_b_percentage)
        else:
            return float(val_a) <= float(val_b_percentage)
    except ValueError:
        return False
