{
  "x402Version": 2,
  "id": 35440,
  "slug": "35440",
  "resource": "https://agentstoolshub.com/api/v1/calculators/compound-interest-calculator",
  "description": "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.",
  "type": "http",
  "serviceName": "AgentTools",
  "resourceType": "Developer Tool",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x8a0F2b0a6C82D1c54B16E2e4DEcd18fF0802b0f6",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "3000",
      "amountUsd": 0.003,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "analytics": {},
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "annualRate": 5,
            "principal": 10000,
            "timesPerYear": 12,
            "years": 10
          },
          "type": "http"
        },
        "output": {
          "example": {
            "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"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "annualRate": {
                    "description": "Annual rate %",
                    "type": "number"
                  },
                  "principal": {
                    "description": "Principal",
                    "type": "number"
                  },
                  "timesPerYear": {
                    "description": "Compounding",
                    "enum": [
                      1,
                      2,
                      4,
                      12,
                      52,
                      365
                    ],
                    "type": "number"
                  },
                  "years": {
                    "description": "Years",
                    "type": "number"
                  }
                },
                "required": [
                  "principal",
                  "annualRate",
                  "years"
                ],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "calculators",
    "finance",
    "analytics",
    "bazaar"
  ],
  "sourceHost": "agentstoolshub.com",
  "lastUpdated": "2026-10-11T22:29:38.303Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-11T22:29:38.166Z"
  },
  "metadata": {
    "serviceName": "AgentTools",
    "extensions": {
      "analytics": {},
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "annualRate": 5,
              "principal": 10000,
              "timesPerYear": 12,
              "years": 10
            },
            "type": "http"
          },
          "output": {
            "example": {
              "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"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "properties": {
                    "annualRate": {
                      "description": "Annual rate %",
                      "type": "number"
                    },
                    "principal": {
                      "description": "Principal",
                      "type": "number"
                    },
                    "timesPerYear": {
                      "description": "Compounding",
                      "enum": [
                        1,
                        2,
                        4,
                        12,
                        52,
                        365
                      ],
                      "type": "number"
                    },
                    "years": {
                      "description": "Years",
                      "type": "number"
                    }
                  },
                  "required": [
                    "principal",
                    "annualRate",
                    "years"
                  ],
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "agentstoolshub.com",
    "manifest_name": "agentstoolshub.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}