def calc_buy_order_quantity(price: float, ord_val: float, limit_percent: float):
    """Returns the order quantity (int) for a buy order based on
    the option price, maximum order size, and buy limit percent  """
    lot_size = 100  # standard lot size value
    lot_value = price * lot_size * (1 + limit_percent)
    quantity = ord_val / lot_value
    return int(quantity)