PHP Classes

Compex PHP Compound Interest Calculator: Calculate compound interest on loans

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 34 All time: 11,063 This week: 89Up
Version License PHP version Categories
compex 1.0The PHP License5PHP 5, Finances
Description 

Author

This package can calculate compound interest on loans.

It implements an application that allows users to get the results of calculations on loan amounts. Currently it can:

- Get the values of the yearly interest rate, the amount to be returned as interest monthly, and the tenor time, i.e. the remaining tenor before a financial contract expires.
- Calculate the monthly interest rate in percentage. We have the opening and closing values. The opening value starts at 0.
- Iterate through the number of months and calculate the interest on both the fixed amount to be invested monthly plus opening value. The closing value thus equals the interest on the amount to be invested plus interest on the opening value, which is the closing value of the previous day.

Picture of uche
Name: uche <contact>
Classes: 9 packages by
Country: Nigeria Nigeria
Innovation award
Innovation award
Nominee: 7x

 

Details

<p align="center">Compund Interest</p>

About

  • Get the values of the yearly interest rate, the amount to be interested monthly and the tenor.
  • Calculate the monthly interest rate in percentage. We have the opening and closing values. The opening value starts at 0.
  • Loop, (using a for loop) through the number of months and calculate the interest on both the fixed amount to be invested monthly + opening value. The closing value thus equals the interest on the amount to be invested + interest on the opening value (which is the closing value of the previous day).

As you loop, increment and get the needed values - interest at the said month and total amount invested.

How to Use

  • Git clone and composer install
  • Run php artisan serve
  • Visit /exercise to test code.

  Files folder image Files (89)  
File Role Description
Files folder image.idea (3 files)
Files folder imageapp (1 file, 4 directories)
Files folder imagebootstrap (1 file)
Files folder imageconfig (13 files)
Files folder imagedatabase (3 directories)
Files folder imagepublic (4 files, 2 directories)
Files folder imageresources (4 directories)
Files folder imageroutes (4 files)
Files folder imagetests (2 files, 2 directories)
Accessible without login Plain text file .editorconfig Data Auxiliary data
Accessible without login Plain text file .env.example Data Auxiliary data
Accessible without login Plain text file .styleci.yml Data Auxiliary data
Plain text file artisan Class Class source
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file package.json Data Auxiliary data
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file readme.md Doc. Documentation
Accessible without login Plain text file server.php Aux. Auxiliary script
Accessible without login Plain text file webpack.mix.js Data Auxiliary data

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:34
This week:0
All time:11,063
This week:89Up