{
  "tool_id": "profit_margin_calculator",
  "slug": "profit-margin-calculator",
  "path": "/profit-margin-calculator/",
  "mode": "engine_module",
  "usage": "Client-side calculator. Open https://aibizhub.io/profit-margin-calculator/ and fill in the inputs; results render in-browser. Also importable as ES module from https://aibizhub.io/engines/profit-margin-calculator.js — call compute(input) with the JSON shape below.",
  "methodology": "https://aibizhub.io/methodology/profit-margin-calculator/",
  "sample_input": {
    "tool": "profit_margin_calculator",
    "cost": 0,
    "desired_margin_percent": 40,
    "cost_of_goods": 60000,
    "operating_expenses": 25000,
    "revenue": 100000
  },
  "input_schema": {
    "type": "object",
    "properties": {
      "tool": {
        "type": "string"
      },
      "cost": {
        "type": "number"
      },
      "desired_margin_percent": {
        "type": "number"
      },
      "cost_of_goods": {
        "type": "number"
      },
      "operating_expenses": {
        "type": "number"
      },
      "revenue": {
        "type": "number"
      }
    },
    "required": [
      "tool",
      "cost",
      "desired_margin_percent",
      "cost_of_goods",
      "operating_expenses",
      "revenue"
    ]
  },
  "output_schema": {
    "type": "object",
    "properties": {
      "revenue": {
        "type": "number"
      },
      "cost": {
        "type": "number"
      },
      "profit": {
        "type": "number"
      },
      "grossMarginPercent": {
        "type": "number"
      },
      "markupPercent": {
        "type": "number"
      }
    }
  }
}
