devxlogo

Function for Adding Sales Tax

Function for Adding Sales Tax

Question:
What function would I use to take a given amount of money and add 6% sales tax?

Answer:

In JavaScript you could use:

function addSalesTax(SubTotal){     return SubTotal * 1.06}

In VBScript you could use:

Function AddSalesTax(SubTotal)   AddSalesTax = SubTotal * 1.06End Function

devx-admin

Share the Post: