Finance calculator API
One API for the numbers on a loan, an invoice and a spreadsheet: loan payments, VAT and GST, IBAN checks, and Excel functions such as XIRR, PMT and YEARFRAC.
Free plan: 1,000 calls a month, no card needed. Paid plans start at $9 or €9. Test keys are never billed.
curl https://api.curatedapi.com/v1/calc/finance/loan/emi \
-H "Authorization: Bearer YOUR_CURATEDAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"principal": "250000",
"annual_rate_percent": "7.5",
"term_months": 240
}'
{
"calculator": "finance/loan/emi@1",
"result": {
"emi": "2013.98",
"total_paid": "483356.89",
"total_interest": "233356.89",
"last_payment": "2015.67",
"number_of_payments": 240
}
}
The loan calculators work out an equated monthly instalment, the total interest and a schedule. Amounts stay decimal from input to result, and the schedule pays off exactly the principal. APR, NPV, IRR and the other finance calculators use the same key.
The VAT and GST calculator adds tax or takes it out of a price that already includes it, for one amount or every line of an invoice. By default the tax is rounded once per rate, as EN 16931 requires, or you can round each line. Give the rate, or name a country to use its standard rate. Which rate applies to a sale is not decided here.
The IBAN check tests the country, length, structure and check digits against the SWIFT IBAN registry and ISO 13616. Nothing is looked up, so a pass means the number is well formed, not that the account exists.
The Excel functions follow Excel's documented arguments and day-count rules, and are checked against Microsoft's published examples and values saved by Excel. RATE, XIRR and YIELD return proven roots instead of stopping after a fixed number of tries.
What you get
- Loan EMI, VAT and GST, IBAN and Excel functions on one key
- Numbers in and out as text, so a digit is not lost on the way
- Each answer names the version, the formula and which values were rounded
- The same key works for the REST API and the MCP server
- Each of these calculators counts as one call
Results follow each calculator's documented rules and the sources listed. They are not financial, tax or legal advice. Check that the rules fit your case before you rely on a result. See the terms.
Endpoints
Each one is a POST and an MCP tool. Its page shows the inputs, an example and the sources it is checked against.
Monthly instalment (EMI), total interest and an exact amortization schedule for a fixed-rate loan.
/v1/calc/finance/loan/emi · calc_finance_loan_emi
Checked against 2 published cases
VAT or GST on one amount or a whole invoice, added or taken out of tax-inclusive prices, with the per-rate rounding EN 16931 e-invoices require.
/v1/calc/tax/vat · calc_tax_vat
Checked against 6 published cases
Check an IBAN's country, length, structure and check digits against the SWIFT IBAN registry, and say exactly what is wrong.
/v1/calc/check/iban · calc_check_iban
Checked against 5 published cases
The annual rate of return of cash flows on any dates, as Excel's XIRR, proven correct to the last digit.
/v1/calc/excel/xirr · calc_excel_xirr
Checked against 1 published case
The payment per period for a loan or an investment, the same as Excel's PMT.
/v1/calc/excel/pmt · calc_excel_pmt
Checked against 1 published case
The fraction of a year between two dates under Excel's five day-count bases, including Excel's own actual/actual rule.
/v1/calc/excel/yearfrac · calc_excel_yearfrac
Checked against 3 published cases
On this site
Common questions
Which finance calculations are on the API?
Loans, including the monthly instalment and its schedule, plus the other finance calculators (APR, interest, NPV, IRR and more). VAT and GST on a price or an invoice. An IBAN check. Excel functions, including XIRR, PMT and YEARFRAC. Each group has its own page listing every calculator.
How does the VAT and GST calculator round?
By default the tax is rounded once for each rate, on the sum of that rate's lines, which is how EN 16931 defines the VAT breakdown. The other choice rounds the tax on each line and adds those up. You give the rate, or a country's standard rate.
Does the IBAN check contact the bank?
No. Nothing is looked up. The check tests the country, length, structure and check digits. A pass means the number is well formed, not that the account exists.
Do the Excel functions match Excel?
They follow Excel's documented arguments and are checked against Microsoft's published examples and values saved by Excel. RATE, XIRR and YIELD return proven roots. Excel stops XIRR once the rate changes by less than 0.000001 percent, so digits past that can differ.
What does the free plan include?
The free plan includes 1,000 calls a month and needs no card. Paid plans start at $9 a month or €9 a month. Failed calls, test keys and a retry that sends the same idempotency key are not billed.
Start on the free plan
1,000 calls a month, no card needed. Paid plans start at $9 or €9. Same key for the REST API and the MCP server.