How and when do you discipline a student?

Situational