# Compound Interest Calculator with Monthly Contributions

> Compound Interest Calculator with Monthly Contributions is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-30).

Calculates the future value of savings or investments with compound interest, optional monthly contributions, and a year-by-year balance breakdown.

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/calc/compound-interest?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Provider: agent-data-tools.revmesh2074.workers.dev
- Website: https://agent-data-tools.revmesh2074.workers.dev
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-compound-interest-calculator-4f2a7ec3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AjGBCX_ZkF2Gk96FGmgwI

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 agent-data-tools-revmesh2074-workers-dev-compound-interest-calculator-4f2a7ec3
```

Example prompt: If I start with $5,000 and add $200 every month at 6% annual interest compounded monthly, what will my savings be worth after 15 years? Show me the balance each year.

## When to prefer this

Use this endpoint when you need to model savings or investment growth over time with a fixed interest rate, optional regular monthly deposits, and flexible compounding frequency. It is ideal for personal finance projections, retirement planning, college fund estimates, and savings goal what-ifs. Prefer this over simple interest calculators when compounding and periodic contributions matter to the result.

## Known failure modes

- Missing required fields (principal, rate, or years) returns a validation error
- Rate outside -50 to 100 range is rejected
- Years exceeding 100 is rejected
- Invalid compound frequency string returns an error
- Non-numeric values for numeric fields cause a 400 error

## How this service works

Compound interest on savings or an investment: starting amount, annual rate, years, compounding (yearly, quarterly, monthly or daily) and an optional contribution at the end of each month. Returns the future value, total contributed, interest earned and the balance after each year. Use for savings goals and investment what-ifs; rates are assumed constant.

## Output

Returns a JSON object with the final future value (futureValue), total amount contributed including principal (totalContributions), total interest earned (interestEarned), and a byYear array showing the running balance at the end of each year throughout the investment period.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "principal",
  "rate",
  "years"
 ],
 "properties": {
  "rate": {
   "type": "number",
   "description": "Annual interest rate in percent, -50 to 100"
  },
  "years": {
   "type": "number",
   "description": "Years, up to 100"
  },
  "monthly": {
   "type": "number",
   "description": "Contribution at the end of each month (default 0)"
  },
  "compound": {
   "type": "string",
   "description": "yearly, quarterly, monthly (default) or daily"
  },
  "principal": {
   "type": "number",
   "description": "Starting amount (0 or more)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "byYear": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "year": {
      "type": "number"
     },
     "balance": {
      "type": "number"
     }
    }
   }
  },
  "futureValue": {
   "type": "number"
  },
  "interestEarned": {
   "type": "number"
  },
  "totalContributions": {
   "type": "number"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-compound-interest-calculator-4f2a7ec3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
