Well you need to convert the percentage into a decimal . E.g: if the tax was 7% it would be 0.7 in decimal form. Then , you need to multiply your decimal by the priced the product. Whatever that number is, is your tax. Add your tax to the price of the product and you have successfully found your whole price.