react-compound-interest

1.3.1 • Public • Published

Compound Interest Calculator

This package contains a React component representing a compound interest calculator that can be used to calculate the future value of an investment based on the principal, interest, annual addition, compounding frequency and number of years.

Features

  • built with React hooks,
  • written in TypeScript,
  • uses Material UI.

Usage

Install

Run npm install react-compound-interest or yarn install react-compound-interest.

Add to your code

Next,

import CompoundInterest from 'react-compound-interest';

Finally,

<CompoundInterest title="Compound Interest Calculator" />

Props

Current version supports following props:

  • title: text to be displayed in the header,
  • options: component options, namely
    • withAnnualAddition: whether or not you need a field for annual addition (true by default).

UI

Enter your principal, interest, annual addition, compounding frequency and number of years you expect your investment to grow. The future value will be calculated and displayed automatically.

Dependencies

License

The MIT License

Copyright (c) 2019 Ruslan Bredikhin

Readme

Keywords

none

Package Sidebar

Install

npm i react-compound-interest

Weekly Downloads

0

Version

1.3.1

License

MIT

Unpacked Size

23.6 kB

Total Files

20

Last publish

Collaborators

  • bredikhin