{"uid":"cap_fePyGyepROf-UqXBWlbjZ","slug":"exact-financial-token-math-calculator-e4a80716","name":"Exact Financial & Token Math Calculator","description":"Exact financial + token math. POST {op:…}: compound (growth with per-period contributions), amortize (payment, total interest, schedule), npv, irr (deterministic bisection) — and token_units: exact decimal↔base-unit conversion via BigInt for any token decimals (ETH 18, USDC 6), the 18-decimal math that float64 silently corrupts. Iterative series computed exactly, never guessed.","url":"https://api.webbersites.com/api/calc/finance","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["op"],"properties":{"op":{"type":"string","description":"compound | amortize | npv | irr | token_units"},"to":{"type":"string","description":"token_units — base | decimal"},"rate":{"type":"number","description":"annual %, e.g. 6.5"},"years":{"type":"number"},"amount":{"type":"string","description":"token_units — decimal or base-unit string"},"decimals":{"type":"number","description":"token_units — ETH 18, USDC 6"},"cashflows":{"type":"array","description":"npv/irr — period 0 first"},"principal":{"type":"number"},"periods_per_year":{"type":"number","description":"default 12"},"contribution_per_period":{"type":"number"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"op":{"type":"string"},"npv":{"type":"number"},"decimal":{"type":"string"},"irr_pct":{"type":"number"},"schedule":{"type":"array"},"base_units":{"type":"string"},"future_value":{"type":"number"},"total_interest":{"type":"number"},"payment_per_period":{"type":"number"}}}}}}},"responseSchema":{"type":"json","example":{"op":"amortize","periods":360,"total_interest":382633.47,"payment_per_period":1896.2}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_obfB9HTMwcxUBVUYmDrPV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Performs precise financial computations (compound interest, loan amortization, NPV, IRR) and exact token unit conversions using BigInt arithmetic to avoid floating-point errors","exampleAgentPrompt":"Calculate the amortization schedule for a $250,000 loan at 6.5% annual interest over 30 years with monthly payments — I want the monthly payment amount and total interest paid.","exampleUseCases":null,"resultDescription":"Returns exact numerical results for the requested financial operation: for compound, the final balance; for amortize, the periodic payment, total interest, and full amortization schedule; for npv, the net present value; for irr, the internal rate of return via bisection; for token_units, the precise decimal or base-unit representation as a BigInt-accurate string.","failureModes":["Missing or unrecognized 'op' field returns an error","Invalid or missing required fields for the chosen operation (e.g. no principal for amortize)","cashflows array empty or missing for npv/irr operations","IRR bisection fails to converge for pathological cash flow series","token_units called without specifying 'to', 'amount', or 'decimals'","Payment failure or x402 protocol error if USDC balance is insufficient"],"whenToPreferThis":"Choose this endpoint when you need mathematically exact financial calculations — especially for crypto token unit conversions where float64 precision loss would corrupt 18-decimal values (ETH, USDC), or when you need a full amortization schedule, compound growth with contributions, NPV, or deterministic IRR that a general-purpose LLM might approximate incorrectly.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:39:06.796Z","isFirstParty":false}