The approximate formula is that every time you die within 2 minutes, 5 seconds is added to the revive timer. If you don't die within 2 minutes the timer resets and you can once again revive in 3 seconds.