https://github.com/syket-git/future-value-calculator
A simple npm package to calculate the future value of an investment based on the present value, interest rate, and compounding periods.
https://github.com/syket-git/future-value-calculator
calculation future-value investment mathematics
Last synced: 8 months ago
JSON representation
A simple npm package to calculate the future value of an investment based on the present value, interest rate, and compounding periods.
- Host: GitHub
- URL: https://github.com/syket-git/future-value-calculator
- Owner: syket-git
- Created: 2024-01-05T11:18:42.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-07T16:27:32.000Z (over 2 years ago)
- Last Synced: 2025-10-09T03:13:25.510Z (8 months ago)
- Topics: calculation, future-value, investment, mathematics
- Language: TypeScript
- Homepage: https://future-value-calculator-demo.vercel.app/
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# future-value-calculator
[](https://www.npmjs.com/package/future-value-calculator)
[](https://opensource.org/licenses/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:
```bash
npm install future-value-calculator
```
## 🔥 How to use
```js
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!