Skip to main content

Module of compound interest factors which includes single payment, uniform payment series, and arithmetic gradient calculations

Project description

COMPOUND INTEREST FACTORS

This is a module of compound interest factors which includes single payment, uniform payment series, and arithmetic gradient calculations

By Zaafirrahman

Installation

This library can be installed by the pip command, open your terminal and type in the following command...

pip install compoundinterest

Functions of this library

First import the library using this command

import compoundinterest as ci

and then proceed to call the functions

Single Payment

ci.fp()

This function can be used to calculate compound interest factor of future value based on present value

ci.pf()

This function can be used to calculate compound interest factor of present value based on future value

Uniform Payment Series

ci.fa()

This function can be used to calculate compound interest factor of future value based on annual value

ci.af()

This function can be used to calculate compound interest factor of annual value based on future value

ci.pa()

This function can be used to calculate compound interest factor of present value based on annual value

ci.ap()

This function can be used to calculate compound interest factor of annual value based on present value

Arithmetic Gradient

ci.pg()

This function can be used to calculate compound interest factor of present value based on gradient value

ci.ag()

This function can be used to calculate compound interest factor of annual value based on gradient value

The parameters

i (interest rate) - Interest rate (without percent) used in the calculation

n (time period) - Investment time period (in year/s) used in the calculation

Example :

You are saving $ 30,000 USD in the bank at an interest rate of 10% annually. How much will it be worth when you take it in 5 years?

In this case, the variables that you already know are present value ($ 30,000 USD), interest rate (10%), and investment period (5 years). Whereas the variable that you are looking for is the future value. So you will need the ci.fp() function with the following calculations:

>>> import compoundinterest as ci
>>> ci.fp(10,5)*30000

48315.30000000002

So, your money in the next 5 years is $ 48,315.3 USD

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

compoundinterest-0.0.1.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file compoundinterest-0.0.1.tar.gz.

File metadata

  • Download URL: compoundinterest-0.0.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.1

File hashes

Hashes for compoundinterest-0.0.1.tar.gz
Algorithm Hash digest
SHA256 82d33591f6ccca58e3e1479f7d9af8d2ff0a0bc19300c645ff6dc0e6d0aff63c
MD5 8312b35fb7d671b64ad2c87ae616f5a9
BLAKE2b-256 80b4eb02f19e3b640464e188bbf4855be8b5056ad6f7bbe2851d8ef19e7f5df1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page