# Unit Contribution Before-and-After Comparison Calculator

> Unit Contribution Before-and-After Comparison 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-18).

Compares two sets of unit price and variable cost records to compute absolute and eligible relative changes in unit contribution margin

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-finance-unit-contribution-compare?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/unit-contribution-before-and-after-comparison-calculator-fb92c78e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LyQHTmHPJi2aUnj7KGgr8

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-before-and-after-comparison-calculator-fb92c78e -d '<json body>'
```

Example prompt: Can you compare unit contribution for me — before the change my unit price was $20 and variable cost per unit was $12, and after the change my unit price is $22 and variable cost per unit is $13.20? Show me the absolute and relative difference.

## When to prefer this

Use this endpoint when you need a quick, formula-transparent before-and-after unit contribution margin comparison for two specific data points, with absolute and relative change reported. It is best suited for point-in-time scenario comparisons rather than time-series analysis, forecasting, or multi-period aggregation. Prefer this over general spreadsheet tools when you need a structured JSON response with explicit formula and limitation disclosure for auditability.

## Known failure modes

- Missing required fields (unit_price or variable_cost_per_unit in before or after object) returns validation error
- Values exceeding maximum limit of 1,000,000,000,000 rejected
- Non-numeric values cause schema validation failure
- Payment not completed results in 402 response before calculation is run

## How this service works

Unit contribution - Before and after comparison: Compare two supplied records, reporting absolute and eligible relative changes. 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 before and after comparison report.

## Output

Returns a JSON object containing the unit contribution values for both the before and after states, the absolute change in unit contribution, the eligible relative (percentage) change, the formula used, the units of measurement, and any stated limitations of the calculation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "after": {
   "type": "object",
   "default": {
    "unit_price": 22,
    "variable_cost_per_unit": 13.200000000000001
   },
   "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
  },
  "before": {
   "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-before-and-after-comparison-calculator-fb92c78e/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)
