Coder Social home page Coder Social logo

envatic / amortize Goto Github PK

View Code? Open in Web Editor NEW

This project forked from codesmithtech/amortize

0.0 0.0 0.0 22 KB

PHP library for calculating the amortization of mortgages, or any other loan, over a period of time

License: MIT License

PHP 100.00%

amortize's Introduction

Amortize

Amortize calculates the amortization of loans over their term, taking care of the math for you.

  • Calculates principal and interest for each month over the loan term
  • Calculate total repayable over the term of the loan
  • Add overpayments part way through the term and have the loan term shortened, or the monthly payment recalculated and reduced for the remainder of the term

Install

composer require codesmithtech/amortize

Usage

<?php
$amortize = new Amortize();
$amortize->setInterestRate(3.5);
$amortize->setPrincipal(15000.0);
$amortize->setTerm(36); // months

$amortize->totalAmountDueOverTerm(); // returns a float with a value equal to the principal + interest owed over the term of the loan

$amortize->getBreakdownByMonth(); //  returns an array of AmortizedMonth objects, each containing the amount of principal and interest due that month

amortize's People

Contributors

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