Why tax is not calculating properly?