My threshold is three. The third time I duplicate code/behavior is when I start to think about DRYing said code/behavior.