← All tool references

Business Tools · not_available

EOQ Calculator

EOQ with transparent inputs and reviewable results.

Open public tool

Overview

Category
Business Tools
API mode
not_available
Processing
client-side
Privacy
no-data-stored

Public descriptor

The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.

GET /api/v1/tools/eoq-calculator

View this descriptor as JSON

Execute availability

This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.

POST /api/v1/tools/eoq-calculator/execute

Authentication is not issued during the preview. A bearer API key is planned for execution after launch.

Input schema

object object; additional properties are not accepted.

annual_demand · number · required
Enter annual demand.
order_cost · number · required
Enter cost per order.
holding_cost · number · required
Enter annual holding cost per unit.
{
    "type": "object",
    "properties": {
        "annual_demand": {
            "type": "number",
            "description": "Enter annual demand."
        },
        "order_cost": {
            "type": "number",
            "description": "Enter cost per order."
        },
        "holding_cost": {
            "type": "number",
            "description": "Enter annual holding cost per unit."
        }
    },
    "required": [
        "annual_demand",
        "order_cost",
        "holding_cost"
    ],
    "additionalProperties": false
}

Output schema

On a successful execution, schema values appear in data.result.values.

economic_order_quantity · number
Economic order quantity produced by the tool.
orders_per_year · number
Orders per year produced by the tool.
annual_ordering_cost · number
Annual ordering cost produced by the tool.
annual_holding_cost · number
Annual holding cost produced by the tool.
{
    "type": "object",
    "properties": {
        "economic_order_quantity": {
            "type": "number",
            "description": "Economic order quantity produced by the tool."
        },
        "orders_per_year": {
            "type": "number",
            "description": "Orders per year produced by the tool."
        },
        "annual_ordering_cost": {
            "type": "number",
            "description": "Annual ordering cost produced by the tool."
        },
        "annual_holding_cost": {
            "type": "number",
            "description": "Annual holding cost produced by the tool."
        }
    },
    "additionalProperties": false
}

EOQ Calculator worked example

The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.

curl -X POST "https://utilitypages.org/api/v1/tools/eoq-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "annual_demand": 12000,
    "order_cost": 45,
    "holding_cost": 3.5
}'
{
    "ok": true,
    "data": {
        "slug": "eoq-calculator",
        "result": {
            "values": {
                "economic_order_quantity": 555.490000000000009094947017729282379150390625,
                "orders_per_year": 21.60000000000000142108547152020037174224853515625,
                "annual_ordering_cost": 972.1100000000000136424205265939235687255859375,
                "annual_holding_cost": 972.1100000000000136424205265939235687255859375
            },
            "display": {
                "display": "555.49"
            },
            "warnings": [],
            "assumptions": [],
            "steps": []
        }
    },
    "meta": [],
    "request_id": "req_example_123"
}

Errors

api_not_launched · 503
Returned by the current launch gate for every execute request.
invalid_json · 400
Returned when an enabled execute request does not contain valid JSON.
validation_failed · 422
Returned when a request does not satisfy the input schema.
browser_interaction_required · 422
Returned for browser capability tools instead of inventing a server-side result.
tool_not_found · 404
Returned when a requested descriptor slug does not exist.
execution_failed · 503
Returned when an enabled server-side execution cannot complete.