# Unit Contribution - Target Gap Calculator

> Unit Contribution - Target Gap 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-19).

Calculates unit contribution (price minus variable cost per unit) and measures the result against a user-supplied numeric target to quantify the gap.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-finance-unit-contribution-target-gap?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/unit-contribution-target-gap-calculator-33a6124e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aiRfvcgjiOygkXeMHsTxf

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 unit-contribution-target-gap-calculator-33a6124e -d '<json body>'
```

Example prompt: My unit price is $20 and variable cost per unit is $12 — can you calculate the unit contribution and tell me how far it is from my target of $10?

## When to prefer this

Use this endpoint when you need a bounded, single-shot calculation of unit contribution margin compared to a specific numeric target — particularly when you want the formula and limitations documented in the response. Prefer it over general financial APIs when you need a lightweight, pay-per-call computation without live market feeds, financial advice, or recommendation logic.

## Known failure modes

- Missing required fields (unit_price or variable_cost_per_unit) returns a validation error
- Values outside allowed range (negative costs or prices exceeding 1e12) are rejected
- Non-numeric input for price, cost, or target fields causes a schema error
- Payment failure or insufficient USDC balance blocks the request

## How this service works

Unit contribution - Target gap calculation: Measure one calculated value against a supplied numeric target; no recommendation or target setting. Metric: Unit contribution. 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 target gap calculation report.

## Output

Returns a JSON object containing the calculated unit contribution (unit price minus variable cost per unit), the numeric gap between that result and the supplied target, the formula used, units of measurement, and limitations of the calculation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "target": {
   "type": "number",
   "default": 100,
   "maximum": 1000000000000000000,
   "minimum": -1000000000000000000
  },
  "values": {
   "type": "object",
   "default": {
    "unit_price": 20,
    "variable_cost_per_unit": 12
   },
   "required": [
    "unit_price",
    "variable_cost_per_unit"
   ],
   "properties": {
    "unit_price": {
     "type": "number",
     "default": 20,
     "maximum": 1000000000000,
     "minimum": 0,
     "description": "Amount in a consistent supplied currency and reporting period"
    },
    "variable_cost_per_unit": {
     "type": "number",
     "default": 12,
     "maximum": 1000000000000,
     "minimum": 0,
     "description": "Amount in a consistent supplied currency and reporting period"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/unit-contribution-target-gap-calculator-33a6124e/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)
