{"uid":"cap_p-t0YHP4-nrw4Orq5BmzN","slug":"x402-forgemesh-io-financial-math-api-8ca7d981","name":"x402.forgemesh.io Financial Math API","description":"Financial math API: compound interest with any compounding frequency, monthly loan/mortgage payment and total interest, or ROI. Exact, deterministic.","url":"https://x402.forgemesh.io/compound-interest","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"final":{"type":"string"},"years":{"type":"string"},"initial":{"type":"string"},"principal":{"type":"string"},"calculation":{"type":"string","description":"compound_interest | loan_payment | roi"},"compounds_per_year":{"type":"string"},"annual_rate_percent":{"type":"string"}}},"responseSchema":{"type":"json","example":{"total_interest":382632.9,"monthly_payment":1896.2}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_lRKq9hfiH7WVM502umJGd","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates compound interest, monthly loan/mortgage payments with total interest, or ROI — exact and deterministic, with configurable compounding frequency.","exampleAgentPrompt":"Calculate the monthly loan payment and total interest for a $250,000 mortgage at 6.5% annual interest, compounded monthly over 30 years.","exampleUseCases":null,"resultDescription":"Returns an exact, deterministic numeric result for the requested financial calculation — compound interest earned, monthly loan payment amount plus total interest paid over the life of the loan, or ROI percentage — based on the provided principal, rate, compounding frequency, and term.","failureModes":["Missing required fields for the chosen calculation type — e.g. no principal or rate provided","Invalid or unrecognized calculation type string (must be compound_interest, loan_payment, or roi)","Non-numeric strings passed for numeric fields like principal or annual_rate_percent","Division by zero scenarios such as zero compounds_per_year","Missing final or initial values when roi calculation is requested"],"whenToPreferThis":"Choose this endpoint when you need precise, deterministic financial math — compound interest at any compounding frequency, loan or mortgage payment schedules, or ROI — without relying on a general-purpose LLM that may approximate. Ideal when the agent needs an authoritative numeric answer to embed in a report, recommendation, or follow-up calculation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:03.374Z","isFirstParty":false}