API & MCP

Everything a person can do on Ledgerly Compound Growth Calculator, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Ledgerly Compound Growth Calculator

Compound interest with a starting amount, monthly contributions (at the start or end of the month, with a yearly raise), monthly, yearly or daily compounding, yearly fees and inflation. Shows the final balance, the same in today’s money, how much you paid in, how much fees cost including the growth they take away, the doubling time and a year-by-year table. Part of Ledgerly’s Debt & Growth.

Inputs of Ledgerly Compound Growth Calculator
FieldTypeDefaultDescription
currencytext"EUR"Currency. ISO code used for the labels, e.g. EUR, USD, GBP.
startAmountnumber10000Starting amount
monthlyContributionnumber200Added every month
contributionTimingselect (end, start)"end"Added at the
contributionIncreasePercentnumber0Raise of the monthly amount (% per year)
yearsinteger20Years
annualReturnPercentnumber6Return (% per year, before fees)
compoundingselect (monthly, yearly, daily)"monthly"Compounding
feePercentnumber0Yearly fees (% of the balance). Fund costs (TER), platform or advice fees, charged monthly on the balance.
inflationPercentnumber2Inflation (% per year) for today’s money

Example request

10,000 plus 200 a month for 20 years at 6 %, 0.8 % fees

curl -X POST https://ledgerlycompoundgrowth.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"currency":"EUR","startAmount":10000,"monthlyContribution":200,"years":20,"annualReturnPercent":6,"feePercent":0.8,"inflationPercent":2}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "ledgerly-compound-growth": { "type": "http", "url": "https://ledgerlycompoundgrowth.usefulweb.app/mcp" }
  }
}