Calculators
Days of inventory (DIO) calculator API
Compute days inventory outstanding DIO = (averageInventory / COGS)·periodDays and inventory turns, with a lean/healthy/elevated/excess rating — the working-capital efficiency metric. Answers 'how many days of inventory do I hold','days inventory outstanding','inventory turns per year'.
Price$0.01per request
MethodPOST
Route/v1/calc/logi-days-of-inventory
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
calclogisticsinventorydiodays-of-inventoryturnsworking-capitalkpi
API URL
Integration docshttps://x402.hexl.dev/v1/calc/logi-days-of-inventoryExample request
{
"averageInventoryValue": 250000,
"annualCOGS": 3000000
}Example response
{
"formula": "DIO = (averageInventory / COGS) · periodDays ; inventoryTurns = periodDays / DIO",
"daysOfInventory": 30.42,
"inventoryTurns": 12,
"rating": "healthy",
"inputs": {
"averageInventoryValue": 250000,
"annualCOGS": 3000000,
"periodDays": 365
}
}Input schema
{
"type": "object",
"required": [
"averageInventoryValue",
"annualCOGS"
],
"properties": {
"averageInventoryValue": {
"type": "number",
"description": "average inventory value (currency)",
"examples": [
250000
]
},
"annualCOGS": {
"type": "number",
"description": "annual cost of goods sold",
"examples": [
3000000
]
},
"periodDays": {
"type": "number",
"description": "days in the period (default 365)",
"examples": [
365
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}