A Financial Calculator
Project description
Financial Calculator
A Python Library for Calculating Financial Equations.
Table of Contents
Installation
Install
Use python package manager (pip) to install.
pip install fincalc
Upgrade
Use python package manager (pip) to upgrade.
pip install fincalc --upgrade
Usage
from fincalc import FinancialCalculator
FC = FinancialCalculator()
result = FC.factors_calculator('200(P/A,8.25%,3)')
print(result)
Parameters
factors_calculator
factors_calculator(equation: str, rfp: int = 5)
equation
: User input equation.rfp
: Round Floating Points. Defaults to 5.
interest_rate_calculator
interest_rate_calculator(equation: str, rfp: int = 5, interest_rate_range: tuple = (-10, 100))
equation
: User input equation.rfp
: Round Floating Points. Defaults to 5.interest_rate_range
: Interest Rate Range. Defaults to (-10, 100).
Examples
Example 1
from fincalc import FinancialCalculator
FC = FinancialCalculator()
result = FC.factors_calculator('200(P/A,8.25%,3)')
print(result)
Example 2
from fincalc import FinancialCalculator
FC = FinancialCalculator()
result = FC.interest_rate_calculator('-60000+12000*(p/a,i,25)+3000(p/f,i,25)')
print(result)
Supported Factors
P
- (P/F,i%,n)
- (P/A,i%,n)
- (P/A,i%,j%,n)
- (P/G,i%,n)
F
- (F/P,i%,n)
- (F/A,i%,n)
- (F/A,i%,j%,n)
- (F/G,i%,n)
A
- (A/P,i%,n)
- (A/F,i%,n)
- (A/G,i%,n)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fincalc-1.0.1.tar.gz
(4.9 kB
view hashes)