# Days Inventory Outstanding – Target Gap Calculator

> Days Inventory Outstanding – 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 Days Inventory Outstanding (DIO) from supplied figures and measures the result against a user-provided numeric target, returning a gap report in JSON.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-finance-inventory-days-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/days-inventory-outstanding-target-gap-calculator-027194a5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nJiY2PTYLluYMtwMoTSq1

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-target-gap-calculator-027194a5 -d '<json body>'
```

Example prompt: Calculate my days inventory outstanding using average inventory of $8,000, cost of sales of $50,000 over 365 days, and tell me the gap versus my target of 55 days.

## When to prefer this

Choose this endpoint when you need a fast, deterministic calculation of Days Inventory Outstanding measured against a specific numeric target, without needing forecasting, recommendations, or live data feeds. Ideal for agents automating financial reporting, inventory benchmarking, or supply chain KPI monitoring where the user supplies all raw figures.

## Known failure modes

- Missing required fields (average_inventory, cost_of_sales, period_days) returns a validation error
- cost_of_sales of zero triggers an exclusiveMinimum validation error (must be greater than 0)
- Values exceeding maximum bounds (e.g. cost_of_sales > 1,000,000,000,000) return a range validation error
- No target supplied defaults to 100, which may produce misleading gap results if not intended
- Payment failure or insufficient USDC balance returns a 402 error before processing

## How this service works

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

## Output

Returns a JSON object containing the calculated Days Inventory Outstanding value, the numeric gap between that value and the supplied target, the formula used, the units of measurement, and a note on 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": {
    "period_days": 365,
    "cost_of_sales": 30000,
    "average_inventory": 5000
   },
   "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
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/days-inventory-outstanding-target-gap-calculator-027194a5/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)
