Skip to content

A simple Python program that calculates compound investment growth with optional monthly contributions and yearly breakdown.

License

Notifications You must be signed in to change notification settings

charmant07/Investment-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ’ฐ Investment Calculator

Python License: MIT GitHub Repo Size Stars

๐Ÿ’ป A simple Python tool to calculate compound investment growth with optional monthly contributions and yearly breakdown.

---

๐Ÿš€ Features

  • Calculates future value of investments with compound interest.
  • Option for monthly contributions.
  • Displays yearly growth breakdown.
  • Handles invalid inputs gracefully.

๐Ÿงฎ Formula Used

For monthly contributions: [ FV = P(1 + r/n)^{nt} + PMT \left(\frac{(1 + r/n)^{nt} - 1}{r/n}\right) ]

Where:

  • P = Initial investment
  • PMT = Monthly contribution
  • r = Annual interest rate (8%)
  • t = Number of years
  • n = 12 (months per year)

๐Ÿ“ธ Example Run

=== INVESTMENT CALCULATOR === What's your initial investment: $1000 In how many years do you want to reach your goal: 10 Do you prefer monthly contribution? (yes/no): yes Great! How much per month: $50

Final value after 10 years: $9,153.82


๐Ÿง  Author

Made with ๐Ÿ’ป and โ˜• by charmant07

About

A simple Python program that calculates compound investment growth with optional monthly contributions and yearly breakdown.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages