Fixed tax calculation bug