Calculators

Investment calculator API endpoints — SIP, Goal Planner, SWP, and COAST FI.

All calculator endpoints are under /api/calculator/. No API token required.

SIP Calculator

Calculate SIP or lump-sum maturity value with optional annual step-up.

  • Method: POST
  • URL: /api/calculator/sip_calculator
  • Auth: Not required

Request body:

ParameterTypeRequiredConstraintsDescription
investmentTypestringYes"sip" or "lump"Monthly SIP or one-time lump sum
amountnumberYes> 0, max 10 CrMonthly SIP amount or lump-sum amount in INR
annualReturnRatePercentnumberYes0-30Expected annual return (e.g., 12 = 12%)
durationYearsintYes1-40Investment duration in years
annualStepUpPercentnumberNo0-50, default 0Annual SIP increment %. SIP only.
# Flat SIP — Rs 10,000/month for 10 years at 12%
curl -s -X POST https://api.indvested.com/api/calculator/sip_calculator \
  -H "Content-Type: application/json" \
  -d '{"investmentType": "sip", "amount": 10000, "annualReturnRatePercent": 12, "durationYears": 10}'
{
  "investmentType": "sip",
  "monthlySipAmount": 10000,
  "annualStepUpPercent": 0,
  "annualReturnRatePercent": 12,
  "durationYears": 10,
  "maturityValue": {
    "totalCorpus": 2323391,
    "totalAmountInvested": 1200000,
    "wealthGained": 1123391,
    "formatted": { "locale": "en_IN", "totalCorpus": "23,23,391" }
  },
  "yearlyBreakdown": [
    {
      "year": 1,
      "monthlySipAtYearStart": 10000,
      "totalInvestedByYearEnd": 120000,
      "corpusByYearEnd": 127391,
      "wealthGainedByYearEnd": 7391
    }
  ]
}

Lump-sum response has the same structure but with lumpSumAmount instead of monthlySipAmount.


Goal Planner

Reverse-SIP calculator: given a target corpus and duration, compute the required monthly SIP across multiple expected return rates.

  • Method: POST
  • URL: /api/calculator/goal_planner
  • Auth: Not required

Request body:

ParameterTypeRequiredConstraintsDescription
targetCorpusnumberYes> 0, max 1000 CrTarget corpus in INR
durationYearsintYes1-40Investment duration in years
returnRatesnumber[]NoEach 0-30, max 10 items, default [8,10,12,14,15]Annual return rates to compute SIP for
curl -s -X POST https://api.indvested.com/api/calculator/goal_planner \
  -H "Content-Type: application/json" \
  -d '{"targetCorpus": 10000000, "durationYears": 15, "returnRates": [8, 10, 12, 15]}'
{
  "targetCorpus": 10000000,
  "durationYears": 15,
  "resultsPerReturnRate": [
    {
      "annualReturnRatePercent": 8,
      "requiredMonthlySip": 30259,
      "totalAmountInvested": 5446620,
      "wealthGained": 4553380,
      "formatted": { "locale": "en_IN", "requiredMonthlySip": "30,259" }
    },
    {
      "annualReturnRatePercent": 12,
      "requiredMonthlySip": 20017,
      "totalAmountInvested": 3603060,
      "wealthGained": 6396940,
      "formatted": { "locale": "en_IN", "requiredMonthlySip": "20,017" }
    }
  ]
}

requiredMonthlySip is the ceiling of the exact value to ensure the target corpus is always met.


SWP Calculator

Simulate a Systematic Withdrawal Plan with non-linear (randomized) returns, inflation, and lifestyle inflation. The simulation generates a random sequence of annual returns whose geometric mean matches your expected return exactly, modeling realistic non-linear market behavior.

  • Method: POST
  • URL: /api/calculator/swp_calculator
  • Auth: Not required

Request body:

ParameterTypeDefaultDescription
rulefloat0.04Withdrawal rule, max 0.2 (e.g., 0.04 = 4% rule)
startingCorpusfloat5Starting corpus in Crores (min 1)
primaryVestedDurationint1Years to grow corpus before withdrawals begin
yearsToCalculateint15Withdrawal period in years (max 30)
expectedReturnfloat0.12Expected CAGR as decimal, max 0.3 (e.g., 0.12 = 12%)
lowestExpectedReturnfloat-0.17Worst-case annual return for simulation
highestExpectedReturnfloat0.35Best-case annual return for simulation
assumedInflationfloat0.08Annual inflation rate, max 0.1
lifestyleInflationfloat0.05Additional lifestyle inflation per year, max 0.15
withdrawalAmtPerYearfloatrule x corpusFirst-year withdrawal in Crores
curl -s -X POST https://api.indvested.com/api/calculator/swp_calculator \
  -H "Content-Type: application/json" \
  -d '{
    "rule": 0.04,
    "startingCorpus": 5,
    "primaryVestedDuration": 1,
    "yearsToCalculate": 15,
    "expectedReturn": 0.12,
    "assumedInflation": 0.08,
    "lifestyleInflation": 0.05
  }'

Response includes:

  • initialInvestment — starting corpus details
  • yearlyData — year-by-year corpus tracking with withdrawal amounts and randomized returns
  • finalSummary — total withdrawn, final corpus, inflation-beating check
  • All monetary values are in Crores

COAST FI Calculator

COAST FI status checker and SIP gap planner. Computes the minimum corpus needed today to “coast” to your retirement target, checks if you’re already there, and calculates the required monthly SIP (fixed or step-up).

  • Method: POST
  • URL: /api/calculator/coast_fi_calculator
  • Auth: Not required

Request body:

ParameterTypeRequiredConstraintsDescription
currentAgeintYes18-70Current age
retirementAgeintYes19-80, > currentAgePlanned retirement age
currentCorpusnumberYes>= 0, max 1000 CrCurrent invested corpus in INR
currentMonthlySipnumberYes>= 0, max 10 CrCurrent monthly SIP in INR
targetCorpusnumberYes> 0, max 1000 CrTarget retirement corpus in INR
targetCorpusBasisstringYes"retirement_nominal" or "today_value"Whether target is retirement-year nominal or present-day value
annualReturnRatePercentnumberYes0-30Expected annual portfolio return (%)
contributionModestringNo"fixed" or "step_up", default "fixed"SIP growth style
annualStepUpPercentnumberNo0-50, default 0Annual SIP step-up % (for step_up mode)
inflationRatePercentnumberNo0-15Used for real-return analytics and today_value target conversion
curl -s -X POST https://api.indvested.com/api/calculator/coast_fi_calculator \
  -H "Content-Type: application/json" \
  -d '{
    "currentAge": 30,
    "retirementAge": 55,
    "currentCorpus": 2500000,
    "currentMonthlySip": 20000,
    "targetCorpus": 30000000,
    "targetCorpusBasis": "retirement_nominal",
    "annualReturnRatePercent": 11,
    "contributionMode": "step_up",
    "annualStepUpPercent": 10,
    "inflationRatePercent": 6
  }'

Key response fields:

FieldDescription
isAlreadyCoastFIWhether current corpus already meets COAST FI threshold
coastFICorpusTodayCorpus needed now to reach target by retirement without further contributions
requiredMonthlySipMinimum total monthly SIP needed
requiredAdditionalMonthlySipIncremental SIP over your current SIP
isCurrentSipSufficientWhether existing SIP is enough to hit target
projectionYearlyBreakdownAnnual table with corpusAtYearStart, contribution, growth, corpusAtYearEnd