GithubHelp home page GithubHelp logo

interest-on-interest's Introduction

Interest On Interest

This is a simple function I've made with PHP to calculate interest on interest. It's nothing fancy at all, but maybe it will be useful to someone. I've made it while learning PHP.

Usage

The script can be run both from a browser and from the terminal.

CLI usage

First argument to the script is the amount of money on your savings account, the second argument is the interest (without the percent sign) and the third (optional) argument is the number of years. For example if you have 50.000 in your savings account, and the interest is 3% and you want to know how much money you will have after 8 years:

php interest.php 50000 3 8

If you leave out the number of years the script will calulate the savings after one year.

Browser usage

Just put the script on a webserver with PHP and run access it from your browser. Then fill in the form and hit 'Calculate' and the script will calculate your savings for you.

Please note that the script does NOT do any form of data validation!

Copying

Copyright 2014 Jack-Benny Persson ([email protected])

This program is release under GNU GPL version 2, please see the LICENSE file more information.

interest-on-interest's People

Contributors

jackbenny avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.