Investment Tracker is a web application that allows users to calculate and track their investments, supporting both simple and compound interest calculations. The app provides a user-friendly interface for adding investments, selecting currencies, and viewing a list of tracked investments.
While using this app, you will get a great insight into the power of compounding and how a simple reinvestment strategy greatly differs monetarily from a simple interest investments. Enjoy!
- Add investments with customizable parameters:
- Principal amount
- Interest rate
- Start and end dates
- Interest type (simple or compound)
- Investment type (daily or annually)
- Currency selection with flags
- Calculate expected returns based on input parameters
- View a list of all added investments
- Delete investments from the list
- Responsive design for various screen sizes
- React
- Next.js
- TypeScript
- Tailwind CSS
- shadcn/ui components
- date-fns for date manipulation
-
Clone the repository:
git clone https://github.com/ccthecode/investment-tracker.git cd investment-tracker -
Install dependencies:
npm install -
Run the development server:
npm run dev -
Open your browser and navigate to
http://localhost:3000to view the application.
-
Adding an Investment
- Fill in the investment details in the form:
- Principal amount
- Select currency
- Interest rate
- Choose investment type (daily or annually)
- Select start and end dates (if applicable)
- Choose interest type (simple or compound)
- Click "Add Investment" to add it to your list
- Fill in the investment details in the form:
-
Viewing Investments
- Scroll down to see the table of all added investments
- The table displays all relevant information, including expected returns
-
Deleting an Investment
- Click the "X" button in the last column to remove an investment from the list
-
Customizing Investment Period
- For annual investments, you can toggle the "Select Investment Period less than 365 days" switch to customize the investment period
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License.