0.0.2 • Published 9 years ago

finjs v0.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

finjs

  • Financial calculator for taxes: calculate net, VAT and gross amounts.
  • :de: Finanzrechner: Steuer, Netto, MwSt und Brutto berechnen.

NPM

Build status dependencies devdependencies

Features:

  • correct floating point calculations.
  • calculate taxes, net, VAT and gross amounts.
  • set precision of decimal places

Development features:

Install

  • node.js: npm i --save finjs
  • browser: <script src="/path/to/fin.js"></script>

Use

Addition and Multiplication

  • fin(0.1 + 0.2) === 0.3; // true
  • fin(2.18 * 100) === 218; // true

Net, Vat and Gross

  • fin.vat(100) === 19; // true
  • fin.gross(100) === 119; // true
  • fin.net(119) === 100; // true
  • fin.vatFromGross(119) === 19; // true
  • fin.validateNetVatGross([100, 19, 119]) === true; // true

Roadmap

  • Create user-friendly github.io page for the calculations with social links.
  • Add additional functions as needed for the creating of German invoices and calculation of taxes.

Support

License

MIT

Inspiration

History

  • 0.0.2 - add fin.validateNetVatGross([net, vat, gross]) function and tests.
  • 0.0.1 - initial commit