GithubHelp home page GithubHelp logo

odsetki's Introduction

Odsetki

Kalkulator odsetek na podstawie https://kalkulatory.gofin.pl/kalkulatory/kalkulator-odsetek-ustawowych

Opis w języku polskim, gdyż biblioteka ma zastosowanie jedynie z naszymi przepisami

Przykład użycia:

use Mrcnpdlk\Lib\Odsetki\OdsetkiUstawowe;

require __DIR__.'/../vendor/autoload.php';

$o = new OdsetkiUstawowe(
    '2015-12-31',
    '2021-01-10',
    10000
);

var_dump($o->calculate());
print_r($o->getDesc());

Rezultat:

double(3419.23)
Array
(
    [0] => Array
        (
            [0] => 2015-12-31 // OD
            [1] => 2015-12-31 // DO
            [2] => 0 // ILOSC DNI
            [3] => 0.08 // STAWKA 
            [4] => 0 // WYLICZONA KWOTA ZA OKRES
        )

    [1] => Array
        (
            [0] => 2016-01-01
            [1] => 2020-03-17
            [2] => 1538
            [3] => 0.07
            [4] => 2949.5890410959
        )

    [2] => Array
        (
            [0] => 2020-03-18
            [1] => 2020-04-08
            [2] => 22
            [3] => 0.065
            [4] => 39.178082191781
        )

    [3] => Array
        (
            [0] => 2020-04-09
            [1] => 2020-05-28
            [2] => 50
            [3] => 0.06
            [4] => 82.191780821918
        )

    [4] => Array
        (
            [0] => 2020-05-29
            [1] => 2021-01-10
            [2] => 227
            [3] => 0.056
            [4] => 348.27397260274
        )

)

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.