Resign when you have no hope of drawing or winning.
[abuse removed; DS]
And how was your comment helpful to the chess student with their question?
Please report abuse, not quote it.
I don't resign unless I have to go somewhere or do something and can't finish the game