# Net Margin Weighted Result Mean Calculator

> Net Margin Weighted Result Mean 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-15).

Calculates a weighted arithmetic mean of net margin across up to 200 supplied data rows using user-provided nonnegative weights.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-finance-net-margin-weighted-mean?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/net-margin-weighted-result-mean-calculator-ff1484e1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kyTRum-mMFGjUXQ19Cvt0

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-weighted-result-mean-calculator-ff1484e1 -d '<json body>'
```

Example prompt: Calculate the weighted mean net margin for these four business units: Unit A had $10,000 revenue and $2,000 net profit, Unit B had $11,000 revenue and $2,200 net profit, Unit C had $10,000 revenue and $1,500 net profit, Unit D had $11,000 revenue and $3,000 net profit — weight them as 1, 2, 1, and 3 respectively.

## When to prefer this

Choose this endpoint when you need a statistically weighted average of net margin across multiple discrete observations — such as portfolio companies, business units, or time periods — where each observation should contribute differently based on user-supplied importance weights. Prefer this over a simple mean when observations have unequal significance. This is not a pooled accounting ratio calculator and should not be used when you need a single unified net margin from combined financials.

## Known failure modes

- Mismatched array lengths between rows and weights returns a validation error
- Weights array containing negative values is rejected
- Revenue values of zero or below are rejected (exclusiveMinimum enforced)
- Fewer than 2 rows provided returns a schema validation error
- More than 200 rows provided exceeds maxItems limit
- Missing required net_profit or revenue fields in any row causes failure
- Payment of 0.01 USDC not completed results in HTTP 402 error

## How this service works

Net margin - Weighted result mean: Calculate a mean of up to 200 results using supplied nonnegative weights; not a pooled accounting ratio. 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 weighted result mean report.

## Output

Returns a JSON object containing the weighted mean net margin value, the formula applied, the units used, and a limitations note clarifying this is a weighted statistical mean of supplied figures (not a pooled accounting ratio), along with any relevant caveats about the calculation scope.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "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
   },
   "default": [
    {
     "revenue": 10000,
     "net_profit": 2000
    },
    {
     "revenue": 11000,
     "net_profit": 2200
    },
    {
     "revenue": 10000,
     "net_profit": 2000
    },
    {
     "revenue": 11000,
     "net_profit": 2200
    }
   ],
   "maxItems": 200,
   "minItems": 2
  },
  "weights": {
   "type": "array",
   "items": {
    "type": "number",
    "default": 1,
    "maximum": 1000000000000,
    "minimum": 0
   },
   "default": [
    1,
    2,
    1,
    2
   ],
   "maxItems": 200,
   "minItems": 2
  }
 }
}
```

## More

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