Feel like you only received half of, possible good, advice:
I used 'two years, up or out', in my career. Who cares if you work somewhere for a longer period of time as long you keep progressing in all the various metrics of career progression?
It's when things become stale that out is a good idea