Skip to content

A React app that calculates investment growth over time. Users enter initial capital, annual contributions, return rate and duration to see a yearly breakdown of value, interest and total capital.

Notifications You must be signed in to change notification settings

danielleconeva/react-investment-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Investment Calculator

A React application for simulating long-term investment growth.
Users can adjust parameters such as initial investment, annual investment, expected annual return, and duration to see how their investments would grow over time.


Features

  • Calculate yearly investment growth with compound interest
  • User-configurable inputs:
    • Initial Investment
    • Annual Investment
    • Expected Annual Return (percentage)
    • Duration (years)
  • Dynamic results table displaying:
    • Year
    • Investment Value
    • Interest earned per year
    • Total accumulated interest
    • Total invested capital
  • Modern, responsive user interface

Tech Stack

  • React (with Vite)
  • JavaScript (ES6+)
  • CSS3
  • Intl API (for currency formatting)

Getting Started

Prerequisites

  • Node.js (v16 or higher recommended)
  • npm or yarn package manager

Installation

  1. Clone the repository:
  git clone https://github.com/your-username/react-investment-calculator.git
  cd react-investment-calculator
  1. Install dependencies:
   npm install
  1. Start the development server:
   npm run dev
  1. Open the application in your browser: http://localhost:5173

About

A React app that calculates investment growth over time. Users enter initial capital, annual contributions, return rate and duration to see a yearly breakdown of value, interest and total capital.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published