# LogicNodes Interest Calculator

> LogicNodes Interest Calculator is a paid API for AI agents from logicnodes.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-28).

Computes simple or compound interest for a given principal, rate, and time period with configurable compounding frequency, precision, and rounding rules

## Facts

- Endpoint: POST https://logicnodes.io/paid/v1/tools/interest_calc?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/logicnodes-interest-calculator-8e776c42
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TONQpqNHysU46_nacn-K_

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 logicnodes-interest-calculator-8e776c42 -d '<json body>'
```

Example prompt: Calculate compound interest on a principal of $25,000 at 6.5% per year for 3 years, compounded monthly, with 8 decimal places of precision and half-even rounding.

## When to prefer this

Choose this endpoint when you need exact, deterministic interest calculations without floating-point ambiguity — especially in financial, DeFi, or lending contexts where precision and configurable rounding modes (e.g. banker's rounding) are critical. Prefer it over general-purpose math tools or LLM arithmetic when auditability and exact decimal scale matter.

## Known failure modes

- Invalid or missing principal — returns error if principal is not a valid numeric string
- Rate percent out of reasonable range or malformed — parsing failure
- Years value not parseable as a numeric string
- Scale outside 0–18 range — schema validation error
- Unknown compounding or rounding enum value — rejected at input validation
- Network or payment failure — HTTP 402 if USDC payment not provided

## How this service works

Exact answers for AI agents: 40+ tools for EVM chains and Aptos, gas on 14 chains, never a guess. Free tier; pay per call in USDC (x402) on 13 networks.

## Output

A JSON object with an 'ok' boolean indicating success, the tool name 'interest_calc', and the computed interest value as a precise decimal string based on the requested scale and rounding mode. Exact numeric results are returned — no approximations or floating point errors.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "scale": {
   "type": "integer",
   "maximum": 18,
   "minimum": 0
  },
  "years": {
   "type": "string"
  },
  "rounding": {
   "enum": [
    "down",
    "up",
    "floor",
    "ceil",
    "half_up",
    "half_even",
    "half_down"
   ],
   "type": "string",
   "description": "rounding rule; default half_up (ties away from zero). half_even is banker's rounding"
  },
  "principal": {
   "type": "string"
  },
  "compounding": {
   "enum": [
    "simple",
    "annual",
    "semiannual",
    "quarterly",
    "monthly",
    "weekly",
    "daily"
   ],
   "type": "string"
  },
  "ratePercent": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/logicnodes-interest-calculator-8e776c42/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from logicnodes.io](https://www.zero.xyz/host/logicnodes.io/llms.txt)
