On the existence time for the Kirchhoff equation with periodic boundary conditions