# Simple CAGR Calculator

> Simple CAGR Calculator is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Computes the Compound Annual Growth Rate (CAGR) from a start value, end value, and number of years using local deterministic math.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/cagr-simple
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/simple-cagr-calculator-685620fc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Nz9mE1FQckxIz3bvLZACw

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 simple-cagr-calculator-685620fc -d '<json body>'
```

Example prompt: What's the CAGR if a portfolio started at 50000, grew to 120000, and it took 7 years?

## When to prefer this

Use this endpoint when you need a fast, cheap, deterministic CAGR computation with no external data dependencies, no API keys, and no live market data — ideal for offline backtesting, financial reporting pipelines, or any agent workflow that needs annualized return figures on demand for $0.001 per call.

## Known failure modes

- Missing required fields (start, end, or years) results in a validation error
- years = 0 causes a division-by-zero or undefined result
- start = 0 causes a division-by-zero error
- Negative start or end values may produce mathematically undefined or complex results
- Non-integer inputs rejected if schema enforces integer type
- Payment failure (insufficient USDC balance) blocks the request via x402

## How this service works

Simple CAGR from start value, end value, and years. Call when annualizing multi-year equity curves offline. Returns cagr as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.

## Output

Returns a JSON object containing the computed CAGR as a decimal or percentage, calculated deterministically using the standard CAGR formula ((end/start)^(1/years) - 1) with no external data dependencies.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "end": {
   "type": "integer",
   "description": "Input field: end."
  },
  "start": {
   "type": "integer",
   "description": "Input field: start."
  },
  "years": {
   "type": "integer",
   "description": "Input field: years."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "end": 150,
  "cagr": 0.1447142425533319,
  "start": 100,
  "years": 3,
  "schema": "delx/util-cagr-simple/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/simple-cagr-calculator-685620fc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
