How is sales tax calculated on a manual invoice?