When is the best time to replace your guitar strings for an upcoming ensemble performance?

Just before you go on stage
One hour before the performance
Two hours before the performance
Several days before the performance

I think its c or d