Corrected tax calculation