# Compound Interest Calculator

> Compound Interest Calculator is a paid API for AI agents from api.gadgethumans.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-19).

Projects compound interest growth year-by-year with optional monthly contributions, returning a full table of annual balances.

## Facts

- Endpoint: GET https://api.gadgethumans.com/compound-interest?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/compound-interest-calculator-74e33e82
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2zrIYsBSSOKjB4hlMtbUm

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 compound-interest-calculator-74e33e82
```

Example prompt: How much will $15,000 grow if I invest it at 6% annual interest for 20 years and add $200 every month? Give me a year-by-year table.

## When to prefer this

Choose this endpoint when you need a quick, deterministic, server-side compound interest projection with a year-by-year breakdown and optional monthly contributions. It is ideal for financial planning scenarios where you want structured tabular output without building the formula yourself. Prefer it over a simple formula when you need the full annual schedule, not just a final number.

## Known failure modes

- Missing required parameters (principal, rate, or years) returns an error
- Non-numeric or negative values for rate/years/principal may cause validation errors
- Extremely large year counts or contribution values may produce unexpected overflow results
- API returns ok:true with empty or malformed data if input types are incorrect

## How this service works

Project compound interest over time with optional monthly contributions, returning a year-by-year table. Pure CPU, instant.

## Output

A JSON response containing a year-by-year table showing the balance at the end of each year, factoring in compound interest on the principal and any monthly contributions. Each row typically includes the year number and the projected total balance.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "queryParams": {
     "type": "object",
     "required": [
      "principal",
      "rate",
      "years"
     ],
     "properties": {
      "rate": {
       "type": "number",
       "description": "Annual rate percent"
      },
      "years": {
       "type": "number",
       "description": "Years"
      },
      "monthly": {
       "type": "number",
       "description": "Monthly contribution"
      },
      "principal": {
       "type": "number",
       "description": "Starting amount"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "ok": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 }
}
```

## More

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