Calculates income tax correctly