How to calculate tax in payment tool?