financial-calcs
A lightweight, reusable TypeScript library to perform financial calculation. This package contains pure calculation functions for:
- Federal Employee Retirement System (FERS) Pension projection
- Retirement Savings projection
- Social Security Benefit projection
- Mortgage Amortization
All functions are decoupled from UI logic and can be used in any TypeScript or JavaScript project.
Installation
npm install financial-calcs
or with Yarn:
yarn add financial-calcs
Notes
- All functions are pure and have no side effects.
- Ideal for use in React, Vue, Node.js, or any TypeScript/JavaScript environment.
- Works well for building projection tables, charts, or integrating into financial planning tools.
Contributing
If you want to contribute:
- Fork the repository
- Make your changes in a separate branch
- Add unit tests
- Open a pull request
License
MIT