# CoCo Compound Interest Calculator

> CoCo Compound Interest Calculator is a paid API for AI agents from cocoeatsai.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-19).

Calculates compound interest growth over time given a principal, annual rate, monthly additions, and investment period

## Facts

- Endpoint: GET https://cocoeatsai.com/area4/agent/tools/compound?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coco-compound-interest-calculator-db1afcb5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BCalzvvmhNaRoSZ4BN7B1

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 coco-compound-interest-calculator-db1afcb5
```

Example prompt: If I invest $5,000 now and add $150 a month at a 7% annual rate, what will my balance be after 10 years with monthly compounding?

## When to prefer this

Use this endpoint when you need a quick, deterministic compound interest calculation with support for monthly contributions. It is well-suited for personal finance projections, savings goal modeling, or educational illustrations. Prefer this over a generic calculator when you need a structured JSON response for downstream processing in an agent workflow.

## Known failure modes

- Missing required query parameters (principal, annual_rate_pct, years) returns an error
- Non-numeric string values for numeric fields may cause a computation error
- Extremely large values or zero/negative rates may produce unexpected results
- Network or server errors return non-200 HTTP status codes

## How this service works

Zach Riehn's lab: an about-me and portfolio, a news desk, The Atelier for AI experiments, Launch Lab for XRP research, and Fracture for games.

## Output

Returns a JSON object with the final_balance (total value at end of period), contributed (total amount deposited including principal and monthly additions), and growth (interest earned), plus a disclaimer note that it is illustrative and not financial advice.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ]
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "years": {
       "type": "string"
      },
      "per_year": {
       "type": "string"
      },
      "principal": {
       "type": "string"
      },
      "monthly_add": {
       "type": "string"
      },
      "annual_rate_pct": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "final_balance"
     ],
     "properties": {
      "final_balance": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "note": "Illustration only, not financial advice.",
  "growth": 104.94,
  "contributed": 1000,
  "final_balance": 1104.94
 },
 "exampleNote": "Computed offline with demonstration inputs; time/random values are illustrative."
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coco-compound-interest-calculator-db1afcb5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cocoeatsai.com](https://www.zero.xyz/host/cocoeatsai.com/llms.txt)
