When is my child no longer a dependent?

Specifically, when can I no longer claim my child as a dependent?