curatedapi

Simple interest calculator

Simple interest for a number of years or between two dates, with standard day-count conventions (Actual/365, Actual/360, Actual/Actual, 30/360, 30E/360).

Amount the interest is charged on.
Annual interest rate in percent.
Time in years (for example 0.5). Use this or the two dates. Unit: years.
First day of the interest period (YYYY-MM-DD).
Day the interest period ends (YYYY-MM-DD); interest accrues up to but not including this day.
Day-count convention used with dates. Options: actual/365: Actual/365 Fixed: actual days ÷ 365.; actual/360: Actual/360: actual days ÷ 360.; actual/actual: Actual/Actual (ISDA): days in each calendar year ÷ that year's length (365 or 366), summed.; 30/360: 30/360 Bond Basis: months of 30 days, years of 360; D1=31→30, and D2=31→30 when D1 is 30 or 31.; 30e/360: 30E/360 Eurobond Basis: months of 30 days, years of 360; any 31st becomes the 30th.
More options: rounding and decimals
Precision and rounding
Rounding mode applied once to each result. Default half_even.
Round results to this many digits after the decimal point.

Examples

Example: 10,000 at 5% for 2 years

Interest
Interest for the period.
1,000.00 exact
Total amount
Principal plus interest.
11,000.00 exact
Year fraction
The exact year fraction t used, as a decimal or a fraction such as 181/365.
2

Rounding: Half even, 2 decimal places. Calculator finance/simple-interest@1.

How it is calculated

I = P × r × t; total = P + I

Interest that is not compounded: I = P × r × t. Give the time either as a number of years or as a start and end date. With dates, the year fraction t follows a day-count convention from the ISDA 2006 Definitions; the exact fraction used is returned so you can check it.

  • Amounts are plain numbers in any single currency; no currency conversion is done.
  • The start date is included and the end date is excluded.

References

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.

Use it from your code

POST /v1/calc/finance/simple-interestVersion 1
curl https://api.curatedapi.com/v1/calc/finance/simple-interest \
  -H "Authorization: Bearer $CURATEDAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "principal": "10000",
    "annual_rate_percent": "5",
    "years": "2"
  }'
The same call in Python
import os

import requests

payload = {
    "principal": "10000",
    "annual_rate_percent": "5",
    "years": "2",
}
response = requests.post(
    "https://api.curatedapi.com/v1/calc/finance/simple-interest",
    headers={"Authorization": f"Bearer {os.environ['CURATEDAPI_KEY']}"},
    json=payload,
    timeout=10,
)
print(response.json()["result"])
The same call in JavaScript
const payload = {
    "principal": "10000",
    "annual_rate_percent": "5",
    "years": "2",
};
const response = await fetch("https://api.curatedapi.com/v1/calc/finance/simple-interest", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.CURATEDAPI_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify(payload),
});
console.log((await response.json()).result);

MCP tool calc_finance_simple_interest at https://mcp.curatedapi.com. Inputs, outputs and errors in the API reference.

Put it on your website

<div data-curatedapi-widget="finance/simple-interest" data-key="capi_public_…"></div>
<script src="https://widgets.curatedapi.com/v1/widget.js" async></script>

Use a public key registered for your site. Calculations are billed like API calls. How widgets work.

Related calculators

Add this calculator to your website

Paste two lines into your page and your visitors get this calculator. Each use counts as one call on your plan, the same as the API.

Free for up to 1,000 uses a month. 50,000 uses a month cost $9.00 on the Starter plan.