ERPNext calculates income tax deduction based on the projected annual salary payable to the employee which is why the income tax deduction per month varies. And, in the last month of the payroll period the system calculates the income tax deductible for the whole year and then adjusts last months deduction to the balance amount.