This package includes financial math calculations for actuarial calculations such as annuity calculations, amortization schedule, sinking fund calculations and constructing tables with those formulas.
Installation
- pip install actuarialCalculations
Annuity Calculations
Calcuating present value: Assuming our user would like to know the downpayment amount with provided kwargs below;
Logic: terms, period and interest amount rate. Price - (presentValue* _N _ Repay Amount ) = Down payment
Calculating the future value: Assuming our user pays at the end of the given period, so our program should accumulate the value with gthe iven interest rate;
Logic: Accumulated Down payment(1+i)**N = Accumulated Price(1+i)*N - (AccumulatedValue_N _ Repay Amount)
Calculating The Down Payment with Given Time Value: Assuming our user wants to calculate the downpayment with the given period of time
Logic: Accumulated Down payment = Accumulated Price ** T -(presentValue * Repay Amount ) ** T- (AccumulatedValue * Repay Amount)**-(N+T) / (1+i)**T
USAGE
.. code:: python
'''
Present Value method takes 5 parameters as intergers and returns downpayment amount
'''
presentValue = PresentValue(
InterestRate, effectiveInterestTerms, fixedPeriod, repayAmount, price)
'''
Accumulated Value method takes 5 parameters as intergers and returns downpayment amount (future value)
'''
accumulatedValue = AccumulatedValue(
InterestRate, effectiveInterestTerms, fixedPeriod, repayAmount, price)
'''
Calculate Given Time method takes 5 parameters as intergers and returns downpayment amount at any given time.
'''
calculateGivenTime = CalculateGivenTime(
InterestRate, effectiveInterestTerms, fixedPeriod, repayAmount, price)
Amortization Schedule Calculation
method takes 4 parameters
Interest rate Years Frequency of the interest that hits in that period of time Loan Amount
USAGE
.. code:: python
'''Create an instance of CalctulateAmortization class and pass the parameters as intergers '''
calculate = CalctulateAmortization(interestRate, years, frequency, loanAmount)
'''To run the calculations we need to call execute funtion '''
calculate.execute()
Sinking Fund Calculation
method takes 4 parameters
Interest rate Years Frequency of the interest that hits in that period of time Amount
USAGE
.. code:: python
''' Create an instance of CalculateSinkingFund class and pass the parameters as integers'''
calculate = CalculateSinkingFund(interestRate, years, frequency, amount)
'''To run the calculations we need to call execute funtion '''
calculate.execute()
CONTACT
The package is created by Sadik Erisen. Please send email to fserisen@gmail.com if you have questions or comments.
LICENCE
MIT
Metadata
Release files for actuarialCalculations 1.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 | Provenance | Actions |
|---|---|---|---|---|
| actuarialCalculations-1.0.2.tar.gz | 3.8 kB | Without provenance | Details for actuarialCalculations-1.0.2.tar.gz |
Release files / actuarialCalculations-1.0.2.tar.gz
| Download URL | actuarialCalculations-1.0.2.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0b5209848297c39e80b29eb8ff8ed0ddd21828ac607aba96e96b08b4164361be
|
|
BLAKE2b-256 checksum How to use checksums |
962367335b6296f109349a25f8cccdfe07a735bc3fb40d2d5d6dc40f0b3146cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/2.7.15
|
Security for actuarialCalculations 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.