How are international students’ non-resident taxes calculated?

If they have lived in the U.S. for less than five years, payroll tax deductions will be calculated at the non-resident rate; if they have lived in the U.S. for at least five years, payroll deductions for taxes will be at the U.S. resident rate.