calculatepricevat

1.0.2 • Public • Published

Calculate VAT

This package contains a function to calculate the price of a product with VAT

Usage

var calculate_VAT=require("./calculatevat").calculate_VAT;
let calc=calculate_VAT(1524,11);
//first parameter: Price
//second parameter: The VAT percentage according to the country 
console.log("The VAT to pay is: "+calc.vat);
console.log("The total to pay already with the VAT included is: "+calc.total);

Package Sidebar

Install

npm i calculatepricevat

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

1.28 kB

Total Files

4

Last publish

Collaborators

  • carlosrodriguezz