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

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

Recent Articles: