# Net Profit Weighted Mean Calculator

> Net Profit Weighted 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-18).

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

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-finance-net-profit-weighted-mean?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/net-profit-weighted-mean-calculator-afb57668
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MZLxSIQgoireTGFUSMF9a

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

Example prompt: Calculate the weighted mean net profit for these two periods: Period 1 had revenue $10,000, cost of sales $6,000, operating expenses $2,000, interest expense $200, and tax expense $300; Period 2 had revenue $11,000, cost of sales $6,600, operating expenses $2,200, interest expense $220, and tax expense $330 — weight Period 1 as 1 and Period 2 as 2.

## When to prefer this

Choose this endpoint when you need a weighted mean of net profit across multiple supplied data points — such as periods, divisions, or scenarios — and want the result expressed with formula transparency and unit context. Prefer it over simple averaging when some rows should carry more influence than others (e.g. recency weighting, revenue-size weighting). This is a computation-only tool: use it when you already have the raw financial figures and need a defensible aggregate metric, not for fetching live financials or producing investment advice.

## Known failure modes

- Mismatched array lengths between rows and weights returns an error
- Fewer than 2 rows or weights provided causes a validation failure
- Negative weight values rejected since weights must be nonnegative
- Revenue or expense values exceeding ±1,000,000,000,000 are out of range
- Cost of sales, operating expenses, or interest expense below 0 are rejected
- All-zero weights array may produce division-by-zero or undefined result

## How this service works

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

A JSON object containing the weighted mean net profit value computed from the supplied rows and weights, along with the formula used, units, and stated limitations of the calculation. Does not include live data, financial advice, or trade execution.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "revenue",
     "cost_of_sales",
     "operating_expenses",
     "interest_expense",
     "tax_expense"
    ],
    "properties": {
     "revenue": {
      "type": "number",
      "default": 10000,
      "maximum": 1000000000000,
      "minimum": -1000000000000,
      "description": "Amount in a consistent supplied currency and reporting period"
     },
     "tax_expense": {
      "type": "number",
      "default": 300,
      "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"
     },
     "interest_expense": {
      "type": "number",
      "default": 200,
      "maximum": 1000000000000,
      "minimum": 0,
      "description": "Amount in a consistent supplied currency and reporting period"
     },
     "operating_expenses": {
      "type": "number",
      "default": 2000,
      "maximum": 1000000000000,
      "minimum": 0,
      "description": "Amount in a consistent supplied currency and reporting period"
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "revenue": 10000,
     "tax_expense": 300,
     "cost_of_sales": 6000,
     "interest_expense": 200,
     "operating_expenses": 2000
    },
    {
     "revenue": 11000,
     "tax_expense": 330,
     "cost_of_sales": 6600.000000000001,
     "interest_expense": 220.00000000000003,
     "operating_expenses": 2200
    },
    {
     "revenue": 10000,
     "tax_expense": 300,
     "cost_of_sales": 6000,
     "interest_expense": 200,
     "operating_expenses": 2000
    },
    {
     "revenue": 11000,
     "tax_expense": 330,
     "cost_of_sales": 6600.000000000001,
     "interest_expense": 220.00000000000003,
     "operating_expenses": 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-profit-weighted-mean-calculator-afb57668/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)
