import math


def eoq(demand_in_units, cost_of_ordering, cost_of_carrying):
    """Return the Economic Order Quantity (EOQ) for a product.

    Args:
        demand_in_units (int):
        cost_of_ordering (float):
        cost_of_carrying (float):

    Returns:
        Economic Order Quantity or EOQ (float).
    """

    return math.sqrt(((demand_in_units * cost_of_ordering) * 2) / cost_of_carrying)