# Operating Margin Two-Input Scenario Grid Calculator

> Operating Margin Two-Input Scenario Grid Calculator is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-14).

Calculates operating margin across up to 100 combinations of two input variables (operating profit and/or revenue) and returns a scenario grid with formula, units, and invalid-combination flags.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-finance-operating-margin-stress-grid?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/operating-margin-two-input-scenario-grid-calculator-19b0a5fa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1Mf9QungtGO_wgps89nB3

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability operating-margin-two-input-scenario-grid-calculator-19b0a5fa -d '<json body>'
```

Example prompt: Run a two-input operating margin scenario grid with baseline revenue of 10,000 and operating profit of 2,000 — vary operating profit across [1800, 2000, 2200, 2400] and revenue across [9000, 10000, 11000, 12000] and show me the full grid including any invalid combinations.

## When to prefer this

Choose this endpoint when you need a structured matrix of operating margin outcomes across two varying financial inputs simultaneously, rather than a single-point calculation. It is ideal for sensitivity analysis, financial planning, and stress testing where you want to see how operating margin behaves across a range of revenue and/or operating profit scenarios in one call. Prefer it over single-value calculators when you need a grid output with invalid-combination detection.

## Known failure modes

- field_x and field_y set to the same value (same-field grid not supported, reported as invalid)
- revenue values at or below zero (exclusiveMinimum enforced)
- more than 10 values supplied for either axis (maxItems exceeded)
- baseline missing required fields (operating_profit or revenue)
- values exceeding maximum bounds (±1,000,000,000,000)
- malformed JSON body returns validation error

## How this service works

Operating margin - Two-input scenario grid: Calculate up to 100 combinations of two distinct supplied input fields, with invalid combinations reported. Metric: Operating margin. Supplied figures only; returns JSON with formula, units and limitations. One of 50 calculators with 20 analysis modes. No live feed, financial advice or trade execution. 0.01 USDC includes one bounded two-input scenario grid report.

## Output

A JSON response containing a two-dimensional scenario grid of operating margin values for every valid combination of the supplied x-axis and y-axis input values, along with the formula used, units, any invalid combinations flagged, and limitations of the calculation. Up to 100 (10×10) combinations are supported.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "field_x": {
   "enum": [
    "operating_profit",
    "revenue"
   ],
   "type": "string",
   "default": "operating_profit"
  },
  "field_y": {
   "enum": [
    "operating_profit",
    "revenue"
   ],
   "type": "string",
   "default": "revenue"
  },
  "baseline": {
   "type": "object",
   "default": {
    "revenue": 10000,
    "operating_profit": 2000
   },
   "required": [
    "operating_profit",
    "revenue"
   ],
   "properties": {
    "revenue": {
     "type": "number",
     "default": 10000,
     "maximum": 1000000000000,
     "minimum": 0,
     "description": "Amount in a consistent supplied currency and reporting period",
     "exclusiveMinimum": 0
    },
    "operating_profit": {
     "type": "number",
     "default": 2000,
     "maximum": 1000000000000,
     "minimum": -1000000000000,
     "description": "Amount in a consistent supplied currency and reporting period"
    }
   },
   "additionalProperties": false
  },
  "values_x": {
   "type": "array",
   "items": {
    "type": "number",
    "default": 1,
    "maximum": 1000000000000,
    "minimum": -1000000000000
   },
   "default": [
    2000,
    2200
   ],
   "maxItems": 10,
   "minItems": 1
  },
  "values_y": {
   "type": "array",
   "items": {
    "type": "number",
    "default": 1,
    "maximum": 1000000000000,
    "minimum": -1000000000000
   },
   "default": [
    10000,
    11000
   ],
   "maxItems": 10,
   "minItems": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/operating-margin-two-input-scenario-grid-calculator-19b0a5fa/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
