dealer-tax
Version:
A package for calculating taxes in a dealer bot.
16 lines (13 loc) • 401 B
JavaScript
function DealerTAX(amount) {
const taxRate = 4.962 / 100;
const coretax = amount * taxRate;
const integerCoretax = Math.round(coretax);
const totalAmount = amount + coretax;
const integerTotalAmount = Math.round(totalAmount);
return {
coretax: integerCoretax,
totalAmount: integerTotalAmount
};
}
module.exports = DealerTAX;
//iiCanaanDev