{
  "tool_id": "break_even_units_revenue",
  "slug": "break-even-units-calculator",
  "path": "/break-even-units-calculator/",
  "mode": "engine_module",
  "usage": "Client-side calculator. Open https://aibizhub.io/break-even-units-calculator/ and fill in the inputs; results render in-browser. Also importable as ES module from https://aibizhub.io/engines/break-even-units-calculator.js — call compute(input) with the JSON shape below.",
  "methodology": "https://aibizhub.io/methodology/break-even-units-calculator/",
  "sample_input": {
    "tool": "break_even_units_revenue",
    "mode": "single",
    "fixed_costs": 20000,
    "target_profit": 10000,
    "planned_units": 350,
    "unit_price": 150,
    "variable_cost_per_unit": 60,
    "products": []
  },
  "input_schema": {
    "type": "object",
    "properties": {
      "tool": {
        "type": "string"
      },
      "mode": {
        "type": "string"
      },
      "fixed_costs": {
        "type": "number"
      },
      "target_profit": {
        "type": "number"
      },
      "planned_units": {
        "type": "number"
      },
      "unit_price": {
        "type": "number"
      },
      "variable_cost_per_unit": {
        "type": "number"
      },
      "products": {
        "type": "array",
        "items": {
          "type": "object"
        }
      }
    },
    "required": [
      "tool",
      "mode",
      "fixed_costs",
      "target_profit",
      "unit_price",
      "variable_cost_per_unit",
      "products"
    ]
  },
  "output_schema": {
    "type": "object",
    "properties": {
      "mode": {
        "type": "string"
      },
      "fixedCosts": {
        "type": "number"
      },
      "targetProfit": {
        "type": "number"
      },
      "contributionMarginPerUnit": {
        "type": "number"
      },
      "contributionMarginRatio": {
        "type": "number"
      },
      "weightedAveragePrice": {
        "type": "number"
      },
      "breakEvenUnits": {
        "type": "number"
      },
      "breakEvenRevenue": {
        "type": "number"
      },
      "targetProfitUnits": {
        "type": "number"
      },
      "targetProfitRevenue": {
        "type": "number"
      },
      "marginOfSafetyUnits": {
        "type": "number"
      },
      "marginOfSafetyPercent": {
        "type": "number"
      },
      "scenarioTable": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "label": {
              "type": "string"
            },
            "unitPrice": {
              "type": "number"
            },
            "variableCostPerUnit": {
              "type": "number"
            },
            "contributionMarginPerUnit": {
              "type": "number"
            },
            "breakEvenUnits": {
              "type": "number"
            },
            "breakEvenRevenue": {
              "type": "number"
            }
          }
        }
      },
      "mixBreakdown": {
        "type": "array",
        "items": {}
      },
      "warnings": {
        "type": "array",
        "items": {}
      },
      "assumptionsEcho": {
        "type": "object",
        "properties": {
          "mode": {
            "type": "string"
          },
          "fixedCosts": {
            "type": "number"
          },
          "targetProfit": {
            "type": "number"
          },
          "plannedUnits": {
            "type": "number"
          },
          "unitPrice": {
            "type": "number"
          },
          "variableCostPerUnit": {
            "type": "number"
          },
          "products": {
            "type": "array",
            "items": {}
          }
        }
      }
    }
  }
}
