1.0.2 • Published 4 years ago

calculatepricevat v1.0.2

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

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);
1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.1

4 years ago