# Halowerk Treasury Runway Calculator

> Halowerk Treasury Runway Calculator is a paid API for AI agents from gov.halowerk.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Projects DAO or protocol treasury runway by subtracting committed liabilities from the starting balance, then simulating monthly inflow and outflow with caller-supplied growth rates over a specified horizon.

## Facts

- Endpoint: POST https://gov.halowerk.com/v1/treasury-runway
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/halowerk-treasury-runway-calculator-a7536acb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XCyHX6N5ONn2J5UjYBwGs

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 halowerk-treasury-runway-calculator-a7536acb -d '<json body>'
```

Example prompt: Project our treasury runway over the next 36 months — we're starting with 5,000,000 USDC, have 800,000 in committed liabilities, monthly inflow of 120,000 growing at 1.5% per month, and monthly outflow of 200,000 growing at 2% per month.

## When to prefer this

Use this endpoint when you need a deterministic, scenario-based treasury runway calculation for a DAO or protocol fund — particularly when you have known committed liabilities to subtract upfront and want to model asymmetric inflow/outflow growth rates. Prefer this over general spreadsheet tools when you need a callable, auditable API in an agentic governance workflow. Not appropriate for price forecasting, token liquidity modeling, or exchange-rate projection.

## Known failure modes

- Missing required fields (starting_balance, monthly_inflow, monthly_outflow, horizon_months) return a 400 validation error
- horizon_months exceeding 240 or below 1 returns a schema validation error
- monthly_inflow_growth_percent or monthly_outflow_growth_percent outside [-100, 1000] returns a bounds error
- Negative balance inputs rejected by schema minimum constraint
- Payment failure or insufficient USDC balance returns a 402 response

## How this service works

Subtracts committed liabilities at month zero, then projects recurring inflow and operating outflow with caller-supplied monthly growth rates. It is a scenario calculation, not a forecast of prices, token liquidity, exchange rates, or future governance decisions.

## Output

Returns a month-by-month projection of the treasury balance over the specified horizon, identifying the depletion month if the balance reaches zero, after subtracting committed liabilities at month zero and applying the supplied inflow and outflow growth rates each period.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "horizon_months": {
   "type": "integer",
   "maximum": 240,
   "minimum": 1
  },
  "monthly_inflow": {
   "type": "number",
   "maximum": 1000000000000000000,
   "minimum": 0
  },
  "monthly_outflow": {
   "type": "number",
   "maximum": 1000000000000000000,
   "minimum": 0
  },
  "starting_balance": {
   "type": "number",
   "maximum": 1000000000000000000,
   "minimum": 0
  },
  "committed_liabilities": {
   "type": "number",
   "maximum": 1000000000000000000,
   "minimum": 0
  },
  "monthly_inflow_growth_percent": {
   "type": "number",
   "maximum": 1000,
   "minimum": -100
  },
  "monthly_outflow_growth_percent": {
   "type": "number",
   "maximum": 1000,
   "minimum": -100
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/halowerk-treasury-runway-calculator-a7536acb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gov.halowerk.com](https://www.zero.xyz/host/gov.halowerk.com/llms.txt)
