# Days Inventory Outstanding – Weighted Result Mean Calculator

> Days Inventory Outstanding – 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-18).

Calculates a weighted mean of Days Inventory Outstanding (DIO) across up to 200 supplied data rows using user-provided nonnegative weights.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-finance-inventory-days-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/days-inventory-outstanding-weighted-result-mean-calculator-788b2c7a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xIntAhp5gcSnoaM9Nk82k

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 days-inventory-outstanding-weighted-result-mean-calculator-788b2c7a -d '<json body>'
```

Example prompt: Can you calculate a weighted mean Days Inventory Outstanding across these four periods: period 1 has average inventory $5,000 and cost of sales $30,000 over 365 days with weight 1; period 2 has average inventory $5,500 and cost of sales $33,000 over 402 days with weight 2; period 3 same as period 1 with weight 1; period 4 same as period 2 with weight 2?

## When to prefer this

Use this endpoint when you need a statistically weighted mean of Days Inventory Outstanding across multiple data points (periods, divisions, subsidiaries) where each row has different importance. It is not a pooled accounting ratio and does not fetch live financial data — all figures must be supplied. Prefer this over simple averages when some periods or units should carry more analytical weight than others.

## Known failure modes

- Fewer than 2 rows supplied — minimum 2 items required in rows and weights arrays
- Weights array length does not match rows array length — mismatch causes validation error
- cost_of_sales value of zero or less — field has exclusiveMinimum of 0
- Average inventory or cost of sales exceeds 1 trillion — maximum boundary exceeded
- More than 200 rows supplied — maxItems constraint violated
- Negative weight values supplied — weights must be nonnegative
- period_days outside range 1–3660 — integer boundary violation

## How this service works

Days inventory outstanding - Weighted result mean: Calculate a mean of up to 200 results using supplied nonnegative weights; not a pooled accounting ratio. Metric: Days inventory outstanding. 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 computed weighted mean Days Inventory Outstanding value, the formula used, the units of measurement, and a note on limitations — clarifying that this is a statistical weighted mean of supplied figures, not a pooled accounting ratio or live financial data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "average_inventory",
     "cost_of_sales",
     "period_days"
    ],
    "properties": {
     "period_days": {
      "type": "integer",
      "default": 365,
      "maximum": 3660,
      "minimum": 1
     },
     "cost_of_sales": {
      "type": "number",
      "default": 30000,
      "maximum": 1000000000000,
      "minimum": 0,
      "description": "Amount in a consistent supplied currency and reporting period",
      "exclusiveMinimum": 0
     },
     "average_inventory": {
      "type": "number",
      "default": 5000,
      "maximum": 1000000000000,
      "minimum": 0,
      "description": "Amount in a consistent supplied currency and reporting period"
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "period_days": 365,
     "cost_of_sales": 30000,
     "average_inventory": 5000
    },
    {
     "period_days": 402,
     "cost_of_sales": 33000,
     "average_inventory": 5500
    },
    {
     "period_days": 365,
     "cost_of_sales": 30000,
     "average_inventory": 5000
    },
    {
     "period_days": 402,
     "cost_of_sales": 33000,
     "average_inventory": 5500
    }
   ],
   "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/days-inventory-outstanding-weighted-result-mean-calculator-788b2c7a/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)
