Dependent college students

I have 2 college students, one lives with me the other at school and I pay for the rent.  They both have part time jobs. How long can I claim them as dependents on my tax return?