future-value-calculator
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

future-value-calculator

npm version

License: MIT

A simple npm package to calculate the future value of an investment based on the present value, interest rate, and compounding periods.

Examples at https://future-value-calculator-demo.vercel.app/.

Source code at https://github.com/syket-git/future-value-calculator,

🏗️ Installation

You can install the package using npm:

npm install future-value-calculator

🔥 How to use

import calculateFutureValue from "future-value-calculator";

// Example usage
const presentValue = 1000;
const interestRate = 5;
const periods = 10;

const futureValue = calculateFutureValue(presentValue, interestRate, periods);
console.log("Future Value:", futureValue);

API

calculateFutureValue(presentValue, interestRate, periods)

Calculates the future value of an investment.

  • presentValue (number): The initial investment amount.
  • interestRate (number): The annual interest rate in percentage.
  • periods (number): The number of compounding periods.

Returns the calculated future value rounded up to the nearest whole number.

License

This project is licensed under the MIT License

Contributing

  • Fork the repository.
  • Create a new branch for your feature or bug fix.
  • Make your changes and commit them.
  • Push to your fork and submit a pull request.

Acknowledgments

  • This package is a simple financial utility tool.
  • Inspired by the need for a quick and reliable future value calculator.

Feel free to use and contribute to this project. Happy calculating!

Package Sidebar

Install

npm i future-value-calculator

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

3.57 kB

Total Files

6

Last publish

Collaborators

  • syketb