Package Exports
- calculatepricevat/calculatevat
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (calculatepricevat) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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);