# Net Margin – Target Gap Calculator

> Net Margin – 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-22).

Calculates the gap between a company's actual net margin and a user-supplied numeric target, returning a structured JSON report with formula, units, and limitations.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-finance-net-margin-target-gap?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/net-margin-target-gap-calculator-e0a7a460
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_klvZisk3OkF78xNcJZALx

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 net-margin-target-gap-calculator-e0a7a460 -d '<json body>'
```

Example prompt: My company had revenue of $10,000 and net profit of $1,500 last quarter — can you calculate the gap between my actual net margin and my target of 25%?

## When to prefer this

Use this endpoint when you have a specific numeric net margin target and want a bounded, formula-transparent gap report for a single period — not when you need recommendations, benchmarks, or live financial data. It is purpose-built for net margin specifically; use sibling endpoints for other metrics such as gross margin or days sales outstanding.

## Known failure modes

- Revenue of zero or negative is rejected (exclusiveMinimum:0 constraint)
- Missing required fields (revenue or net_profit) returns a validation error
- Target value outside the allowed numeric range causes a rejection
- Supplying non-numeric values for financial figures returns a schema error

## How this service works

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

## Output

A JSON object containing the calculated net margin (as a percentage of revenue), the arithmetic gap between that margin and the supplied target, the formula used, the units, and any stated 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": {
    "revenue": 10000,
    "net_profit": 2000
   },
   "required": [
    "net_profit",
    "revenue"
   ],
   "properties": {
    "revenue": {
     "type": "number",
     "default": 10000,
     "maximum": 1000000000000,
     "minimum": 0,
     "description": "Amount in a consistent supplied currency and reporting period",
     "exclusiveMinimum": 0
    },
    "net_profit": {
     "type": "number",
     "default": 2000,
     "maximum": 1000000000000,
     "minimum": -1000000000000,
     "description": "Amount in a consistent supplied currency and reporting period"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

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