# Agent402 UK Compound Interest Calculator

> Agent402 UK Compound Interest Calculator is a paid API for AI agents from agent402.co.uk, paid per call via x402, $0.002/call, status down (last checked 2026-09-15).

Calculates compound interest given a principal, rate, number of periods, and compounding frequency

## Facts

- Endpoint: POST https://agent402.co.uk/v1/math/compound
- Price: $0.002/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-uk-compound-interest-calculator-0eebf382
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qn-4-sYdZtDpx6784YLjF

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 agent402-uk-compound-interest-calculator-0eebf382 -d '<json body>'
```

Example prompt: Can you calculate the compound interest on a $25,000 principal at an annual rate of 6%, compounded monthly, over 10 years?

## When to prefer this

Choose this endpoint when you need a fast, serverless compound interest calculation without building your own math logic. Ideal for financial planning agents, savings projectors, or loan analysis tools that need reliable compounding arithmetic. Prefer this over general-purpose code execution when you want a dedicated, well-defined financial math endpoint with predictable output.

## Known failure modes

- Missing required fields (principal, rate, periods) returns a validation error
- Non-numeric values for numeric fields result in a 400 bad request
- Negative or zero periods may return an error or unexpected result
- Very large numbers may cause precision issues in floating point arithmetic

## How this service works

Don't burn tokens on deterministic work. Go/no-go jobs first: payout preflight, text firewall (PII/secrets), budget check — then rails, calendars, finmath. x402 USDC on Base. UK + global. agent402.co.uk — not agent402.tools. $0.001–$0.002 USDC on Base. No API keys.

## Output

Returns the calculated compound interest result including the final balance or accrued interest based on the provided principal, rate per period, number of periods, and compounding frequency per period.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rate": {
   "type": "number",
   "description": "Rate per period"
  },
  "periods": {
   "type": "number",
   "description": "Number of periods"
  },
  "principal": {
   "type": "number",
   "description": "Starting amount"
  },
  "compounds_per_period": {
   "type": "number",
   "description": "Compounds per period"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "amount": 1628.894626777442,
  "interest": 628.894626777442
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-uk-compound-interest-calculator-0eebf382/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.co.uk](https://www.zero.xyz/host/agent402.co.uk/llms.txt)
