How to calculate a TDS for an employee in payroll?

I created salary slips on Income tax, but the calculation is wrong. If someone has resolved this, please give a brief on the India payroll customization.