pengan

Script that calculates compound interest on investment.
git clone https://codeberg.org/tilt/pengan.git
Log | Files | Refs | README | LICENSE

README.md (1536B)


      1 # pengan
      2 
      3 A python script that calculates compound interest on investments. 
      4 
      5 ## How to use (besides having python3 installed)
      6 
      7 Clone and cd into the project folder
      8 
      9 ```
     10 git clone https://git.sr.ht/~rickylinden/pengan && cd pengan
     11 ```
     12 
     13 Make executable if needed and run the script as
     14 
     15 ```
     16 python3 pengan.py
     17 ```
     18 
     19 The script will ask you if you want to:
     20 
     21 - a) See how much monthly investment becomes over time
     22 
     23 - b) See how much you need to invest to reach a certain amount of money
     24 
     25 Enter the values it asks for, if fields are left empty it runs with example values.
     26 
     27 ## An example
     28 
     29 You put 1000€ into an investment account that on average gives 5% annual
     30 interest. Additionally you'll add 100€ per month for 10 years.
     31 So if you started in 2021 you should have 16533.24€ in 2031.
     32 
     33 ```
     34 $ python3 pengan.py 
     35 +-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+-+-+
     36 |c|o|m|p|o|u|n|d| |i|n|t|e|r|e|s|t| |c|a|l|c|u|l|a|t|o|r|
     37 +-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+-+-+
     38 
     39 a) How much does a monthly investment become in x amount of years?
     40 b) How long does it take to get a certain sum by investing?
     41 
     42 Choose a or b: a
     43 
     44 Starting amount (empty = 0€): 1000
     45 Monthly sum (empty = 500€): 100
     46 Years (empty = 30): 10
     47 Average interest rate (empty = 5%): 5
     48 
     49 After 10 years you should in total have: ~16533.24€.
     50 Which means that in the year 2031 you'll get a monthly average of ~68.88€ in interest.
     51 ```
     52 
     53 ---
     54 
     55 [Formulas this script is based on]: https://www.thecalculatorsite.com/articles/finance/compound-interest-formula.php