Timevalue
Timevalue is a simple Python package for finding the time value of money
pip install timevalue
Future & Present Cli Commands
Find future value of money for $1000$ at $0.03%$ interest for $2$ periods:
future 1000 .03 2 #returns 1060.90
Find present value of money for $1000$ at $0.03%$ interest for $2$ periods:
present 1000 .03 2 #returns 942.60
Annuity Cli Command
Annuities are payments are that are paid to you as a steady stream of income. Heres an example annuity.
Q1. Find the future value of an annuity cash flow of $1000$ with and interest rate of $0.06$ for $3$ periods.
annuity --future_value --cash_flow 1000 --interest_rate 0.06 --time 3 # returns 2673.011949461636
Say we want calculate the annuity present value given the cash flow as the result from Q1, use the --present_value and --pv flag to get the cash flow value:
annuity --present_value --cash_flow 2673.011949461636 --interest_rate 0.06 --time 3 --pv
Heres an example of growing annuity due.
annuity --future_value --due --cash_flow 1000 --interest_rate 0.06 --time 3 --growth_rate .10
Output:
3709.576
You can access the help by using annuity --help.
Import timevalue package
In [1]: from timevalue.investing import time_value_money
In [2]: initialize = time_value_money.TimeValueOfMoney()
In [3]: initialize.future_value_of_money(1000, .03, 2)
Out[3]: 1060.9
In [4]: initialize.present_value_of_money(1000, .03, 2)
Out[4]: 942.5959091337544
See more examples.
Metadata
Release files for timevalue 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| timevalue-0.0.2.tar.gz | 341.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| timevalue-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 680.8 kB
Release files / timevalue-0.0.2.tar.gz
| Download URL | timevalue-0.0.2.tar.gz |
|---|---|
| Size | 341.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e47e765a6e94d9cbdc596ca034b9576204c0afd02f6ea7d1cf03453678ba94c0
|
|
BLAKE2b-256 checksum How to use checksums |
1944124736c67765f38c8dc49ac8acc4159fb5c7971561a338d6c1c4b4f1a038
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.4
|
Release files / timevalue-0.0.2-py3-none-any.whl
| Download URL | timevalue-0.0.2-py3-none-any.whl |
|---|---|
| Size | 339.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
570d19848807aa70e9244db35509155736f48e9df40b97cac8a3e773c56e21b2
|
|
BLAKE2b-256 checksum How to use checksums |
e2b7b99177b3818717c7477f34261bd4bf574e7a5d42696cf98abbb9d54bb51b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.4
|