It depends entirely on company policy – there is no law setting a fixed period. Most employers keep a final written warning “active” for 6 to 12 months, after which it stops counting against you if performance improves. Check your employee handbook for the exact term. The warning typically stays in your personnel file even after it is no longer active.