Finance Utilities

Present Value

Calculate the present value of future cash flows using standard time value of money formulas. Access via MCP in Cursor or Windsurf, or call GET /v1/finance/present-value with future value, discount rate, and time periods. Returns precise calculations for investment analysis, loan valuations, and financial planning scenarios.

API Endpoint

GET /v1/finance/present-value

Code Examples

curl "https://tinyfn.io/v1/finance/present-value" \
  -H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/finance/present-value', {
  headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests

response = requests.get('https://tinyfn.io/v1/finance/present-value',
    headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)

Use via MCP

Add to your AI agent

Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's finance tools:

{
  "mcpServers": {
    "tinyfn-finance": {
      "url": "https://tinyfn.io/mcp/finance",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Learn more about MCP setup →

FAQ

How do I calculate present value with compound interest?

Use the future value, annual discount rate (as decimal), and number of periods. The tool applies PV = FV / (1 + r)^n formula automatically.

What's the difference between present value and net present value?

Present value discounts a single future amount, while NPV sums multiple cash flows minus initial investment. This tool handles single future values only.

Can MCP tools help with financial modeling in Claude Code?

Yes, Claude Code can chain present value calculations with other TinyFn finance tools to build complete discounted cash flow models programmatically.

What discount rate should I use for present value calculations?

Use your required rate of return, cost of capital, or risk-free rate plus risk premium. The tool accepts any decimal rate you specify.

Does the present value calculation handle different compounding periods?

The tool uses standard annual compounding. For other periods, adjust your rate and time inputs accordingly (e.g., monthly rate for monthly periods).

Try Present Value Now

Get your free API key and start using Present Value in seconds.

Get Free API Key