hesaplayıcı
Menu

Investment Return Calculator: API and MCP

Investment Return Calculator over REST and MCP: input fields, limits, outputs, one example request and its real answer. Free, no sign-up.

GET /api/v1/tools/finance.investment-return/mcp/finance

Id
finance.investment-return
Version
1.0.0
Access
Free
Tool page
Investment Return Calculator
Schema
GET /api/v1/tools/finance.investment-return

Input

FieldTypeConstraintsDefaultDescription
initialValue (required)number> 0, ≤ 1,000,000,000,000Initial value · Purchase amount plus costs. Use the same currency for both values.
finalValue (required)number≥ 0, ≤ 1,000,000,000,000Final value · Sale amount or current value.
yearsnumber≥ 0, ≤ 1000Years
monthsnumber≥ 0, ≤ 1,2000Months
daysnumber≥ 0, ≤ 36,5000Days

Output

FieldTypeDescription
annualizedReturnnumberAnnualized return (CAGR) (%)
totalReturnnumberTotal return (%)
profitnumberProfit or loss
termYearsnumberHolding period (years)

Example request

{
  "input": {
    "initialValue": 100000,
    "finalValue": 150000,
    "years": 3,
    "months": 0,
    "days": 0
  },
  "locale": "en"
}
Example answer
{
  "output": {
    "annualizedReturn": 14.471424255333186,
    "totalReturn": 50,
    "profit": 50000,
    "termYears": 3
  },
  "steps": [
    {
      "id": "termYears",
      "formula": "t = years + months/12 + days/365",
      "substitution": "t = 3 + 0/12 + 0/365",
      "value": 3,
      "unit": "years"
    },
    {
      "id": "profit",
      "formula": "profit = final value − initial value",
      "substitution": "profit = 150,000 − 100,000",
      "value": 50000
    },
    {
      "id": "totalReturn",
      "formula": "total return = (final value − initial value) / initial value × 100",
      "substitution": "total return = (150,000 − 100,000) / 100,000 × 100",
      "value": 50,
      "unit": "%"
    },
    {
      "id": "annualizedReturn",
      "formula": "annualized return = ((final value / initial value)^(1/t) − 1) × 100",
      "substitution": "annualized return = ((150,000 / 100,000)^(1/3) − 1) × 100",
      "value": 14.471424255333186,
      "unit": "%"
    }
  ],
  "meta": {
    "toolVersion": "1.0.0",
    "locale": "en"
  },
  "citation": {
    "url": "https://hesaplayici.com/en/finance/investment-return-calculator",
    "title": "Investment Return Calculator"
  }
}