# Operating Profit Weighted Mean Calculator

> Operating 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-14).

Calculates a weighted mean of operating profit across up to 200 supplied data rows using user-defined nonnegative weights.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-finance-operating-profit-weighted-mean?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/operating-profit-weighted-mean-calculator-18a30ebd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IVxRanjk2-h6cdo1fIaLA

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

Example prompt: Calculate the weighted mean operating profit across these 3 periods: Period 1 had revenue $500,000, cost of sales $300,000, operating expenses $80,000 with weight 1; Period 2 had revenue $520,000, cost of sales $310,000, operating expenses $85,000 with weight 2; Period 3 had revenue $550,000, cost of sales $320,000, operating expenses $90,000 with weight 3 — give me the weighted result with the formula used.

## When to prefer this

Choose this endpoint when you need a statistically weighted central tendency of operating profit across multiple periods, business units, or scenarios using your own supplied figures — particularly when periods or units have unequal importance or sample sizes. Prefer it over simple arithmetic means when recency, volume, or reliability weighting matters. Not suitable for retrieving live financial data, computing pooled accounting ratios, or deriving operating profit from raw ledger entries.

## Known failure modes

- Mismatched array lengths between rows and weights returns a validation error
- Fewer than 2 rows supplied triggers a minItems validation error
- Negative weight values rejected by schema (minimum 0)
- Values exceeding ±1,000,000,000,000 rejected by schema bounds
- Missing required fields (revenue, cost_of_sales, operating_expenses) in any row causes a schema validation failure
- Payment failure or insufficient USDC balance prevents execution

## How this service works

Operating profit - Weighted result mean: Calculate a mean of up to 200 results using supplied nonnegative weights; not a pooled accounting ratio. Metric: Operating profit. 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 response containing the weighted mean operating profit value computed from the supplied rows and weights, along with the formula used, the currency/units assumed, and a statement of limitations (e.g. that figures are user-supplied only, no live data, and this is not a pooled accounting ratio).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "revenue",
     "cost_of_sales",
     "operating_expenses"
    ],
    "properties": {
     "revenue": {
      "type": "number",
      "default": 10000,
      "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"
     },
     "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,
     "cost_of_sales": 6000,
     "operating_expenses": 2000
    },
    {
     "revenue": 11000,
     "cost_of_sales": 6600.000000000001,
     "operating_expenses": 2200
    },
    {
     "revenue": 10000,
     "cost_of_sales": 6000,
     "operating_expenses": 2000
    },
    {
     "revenue": 11000,
     "cost_of_sales": 6600.000000000001,
     "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/operating-profit-weighted-mean-calculator-18a30ebd/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)
