# Gross Profit Two-Input Scenario Grid Calculator

> Gross Profit 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-22).

Calculates a grid of up to 100 gross profit outcomes by varying two input fields (revenue and/or cost of sales) across user-specified value ranges.

## Facts

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

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 gross-profit-two-input-scenario-grid-calculator-d6fb400d -d '<json body>'
```

Example prompt: Run a gross profit scenario grid with revenue as the X-axis varying across [9000, 9500, 10000, 10500, 11000] and cost of sales as the Y-axis varying across [5000, 5500, 6000, 6500], using a baseline of revenue=10000 and cost_of_sales=6000 — give me all the combinations with any invalid ones flagged.

## When to prefer this

Choose this endpoint when you need a structured two-dimensional sensitivity table for gross profit across multiple revenue and cost-of-sales combinations simultaneously — particularly useful for financial planning, pricing analysis, or stress-testing margin assumptions. Prefer it over single-value calculators when you want a full grid of outcomes in one call rather than making repeated single-scenario requests.

## Known failure modes

- Both field_x and field_y set to the same axis value causing degenerate grid
- Invalid combination flagged when cost_of_sales exceeds allowable bounds relative to revenue
- Array lengths exceeding 10 items per axis rejected
- Values outside the ±1,000,000,000,000 range rejected
- Payment failure due to insufficient USDC balance

## How this service works

Gross profit - Two-input scenario grid: Calculate up to 100 combinations of two distinct supplied input fields, with invalid combinations reported. Metric: Gross profit. 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 grid of gross profit values for each valid combination of the two input arrays, the formula used, units, a report of any invalid input combinations, and limitations of the calculation. Up to 100 combinations (10×10 maximum grid).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "field_x": {
   "enum": [
    "revenue",
    "cost_of_sales"
   ],
   "type": "string",
   "default": "revenue"
  },
  "field_y": {
   "enum": [
    "revenue",
    "cost_of_sales"
   ],
   "type": "string",
   "default": "cost_of_sales"
  },
  "baseline": {
   "type": "object",
   "default": {
    "revenue": 10000,
    "cost_of_sales": 6000
   },
   "required": [
    "revenue",
    "cost_of_sales"
   ],
   "properties": {
    "revenue": {
     "type": "number",
     "default": 10000,
     "maximum": 1000000000000,
     "minimum": -1000000000000,
     "description": "Amount in a consistent supplied currency and reporting period"
    },
    "cost_of_sales": {
     "type": "number",
     "default": 6000,
     "maximum": 1000000000000,
     "minimum": 0,
     "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": [
    10000,
    11000
   ],
   "maxItems": 10,
   "minItems": 1
  },
  "values_y": {
   "type": "array",
   "items": {
    "type": "number",
    "default": 1,
    "maximum": 1000000000000,
    "minimum": -1000000000000
   },
   "default": [
    6000,
    6600.000000000001
   ],
   "maxItems": 10,
   "minItems": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gross-profit-two-input-scenario-grid-calculator-d6fb400d/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)
