A compound interest calculator which allows the user to draw a polynomial for the interest rate over time.
This calculator was created to calculate the final value of the asset $TIME/MEMO.
poetry (https://python-poetry.org/) for dependency management
python 3.9.5
To use the app, you need to run it in some way. The easiest way to do this is to run it from powershell. Here are the steps for that:
- Check to see if you have python installed in powershell: execute
pythonin powershell - If you didn't have python, install it through the windows store or some other way
- If you did have python, check to make sure the version is compatible (this project supports python versions >=3.7.1,<3.11):
python --version - Now that you have python, get
poetryinstalled in your powershell. Follow the powershell instructions here: https://python-poetry.org/docs/ - Clone this repository (or just copy the
.py,.lock, and.tomlfiles to a directory) - Run
poetry installwherever your files are. This will use the.lockand.tomlfiles to create a virtual environment and install all the dependencies into that virtual environment. That way they don't clutter up your global python instance. - To run the program, just ask
poetryto run themain.pyscript usingpython:poetry run python main.py
- Type valid inputs into the input boxes. All boxes have default values, so you can just stick with defaults if you want
- Click and drag to draw points (in red). The program will fit a polynomial (drawn in black) to these points. It will then use the polynomial to determine rebase rates for each epoch and apply them to the initial principle. You'll see the final principle and final value on the left.
- To copy the polynomial to your clipboard: ctrl-c
- To clear all the points you've drawn so far: ctrl-z (beware, this has bugs)
