This is an open-source npm package that calculates the default rate of interest. The latest rates are fetched from www.bankofgreece.gr.
You can test it here yperimeria.netlify.app.
To install this package, run the following command:
To use this package, import the getInterestRates
function and call it with the appropriate parameters:
import { getInterestRates } from "interest-rate-calculator";
const startDate = "2022-01-01";
const endDate = "2022-01-31";
const amount = 1000;
const result = getInterestRates(startDate, endDate, amount);
console.log(result);