Finance Loan
finance_loanLoan and investment calculator in exact cents, no outside source. mode=annuity: monthly payment, total interest and the full amortisation schedule (up to 600 months). mode=compound: future value of an initial sum plus monthly contributions. mode=npv or irr: discount or internal rate of return of a list of cashflows (up to 200, the first at time 0). Rates are percentages from 0 to 100 a year (per period for npv and irr); terms up to 50 years. Price: $0.002 in USDC per successful call, paid with x402 (Base, Solana or Arc); failed calls are not charged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | annuity (default), compound, npv or irr | |
| rate | No | Annual rate in percent, 0 to 100 (annuity, compound); rate per period in percent for npv (-99 to 1000) | |
| cashflows | No | Comma-separated cashflows for npv and irr, e.g. -1000,300,400,500 (first at time 0) | |
| principal | No | Loan amount (annuity) or starting sum (compound), up to two decimals (optional for compound) | |
| termYears | No | Term in years, up to 50 (annuity, compound) | |
| termMonths | No | Term in months, 1 to 600, instead of termYears | |
| contribution | No | Monthly contribution for compound, up to two decimals (optional) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| rate | No | ||
| months | No | ||
| source | No | ||
| schedule | No | ||
| checkedAt | No | ||
| principal | No | ||
| totalPaid | No | ||
| disclaimer | No | ||
| lastPayment | No | ||
| totalInterest | No | ||
| monthlyPayment | No |