How long can a computer survive with its fan blocked up?

It depends in how hard the computer is working and how hot it gets.