Compex PHP Compound Interest Calculator: Calculate compound interest on loans

Recommend this page to a friend!
  Info   View files View files (89)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2021-08-30 (12 days ago) RSS 2.0 feedNot yet rated by the usersTotal: 23 This week: 4All time: 10,328 This week: 47Up
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: 4 packages by
Country: Nigeria Nigeria
Innovation award
Innovation award
Nominee: 3x

 

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  
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

 Version Control Unique User Downloads Download Rankings  
 100%
Total:23
This week:4
All time:10,328
This week:47Up

For more information send a message to info at phpclasses dot org.