29trust / 100

Calculators Compound Interest Calculator

by AgentTools in Markets & finance

x402 APIFailing, checked 1 h ago

Project the future value of a deposit with compound interest: choose annual, semi-annual, quarterly, monthly, weekly or daily compounding and see total interest earned. Use this when an agent needs to future value with any compounding frequency.

GET https://agenttools-hub.vercel.app/api/v1/calculators/compound-interest-calculator

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
13.3%
Response time
137 ms typical, 137 ms slowest 5%
Last check
1 h ago: Expected HTTP 402, got 308
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://agenttools-hub.vercel.app/api/v1/calculators/compound-interest-calculator?annualRate=5&principal=10000&timesPerYear=12&years=10"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagenttools-hub.vercel.app%2Fapi%2Fv1%2Fcalculators%2Fcompound-interest-calculator
const res = await pay("https://agenttools-hub.vercel.app/api/v1/calculators/compound-interest-calculator?annualRate=5&principal=10000&timesPerYear=12&years=10");
console.log(await res.json());

Example input

{
  "annualRate": 5,
  "principal": 10000,
  "timesPerYear": 12,
  "years": 10
}

Example output

{
  "result": {
    "answer": "16,470.09",
    "answerLabel": "Future value after 10 years",
    "details": [
      {
        "label": "Interest earned",
        "value": "6,470.09"
      },
      {
        "label": "Principal",
        "value": "10,000"
      },
      {
        "label": "vs simple interest",
        "value": "+1,470.09"
      }
    ],
    "steps": [
      "r/n = 5% ÷ 12 = 41.67% per period",
      "periods = 12 × 10 = 120",
      "A = P × (1 + r/n)^120 = 16,470.09"
    ],
    "value": 16470.094977
  },
  "tool": "compound-interest-calculator"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
1 h agoExpected HTTP 402, got 30830878 ms-
6 h agoExpected HTTP 402, got 30830820 ms-
10 h agoExpected HTTP 402, got 308308102 ms-
14 h agoExpected HTTP 402, got 308308129 ms-
18 h agoExpected HTTP 402, got 30830898 ms-
22 h agoExpected HTTP 402, got 308308103 ms-
26 h agoExpected HTTP 402, got 30830885 ms-
30 h agoExpected HTTP 402, got 308308118 ms-
34 h agoExpected HTTP 402, got 308308136 ms-
39 h agoExpected HTTP 402, got 30830846 ms-
42 h agoExpected HTTP 402, got 30830882 ms-
46 h agoExpected HTTP 402, got 30830859 ms-
2 days agoExpected HTTP 402, got 30830845 ms-
2 days agoPassed402185 ms$0.003
2 days agoPassed402137 ms$0.003