About 23 minutes.
Research by Gloria Mark at UC Irvine found it takes roughly 23 minutes for the brain to fully re-engage after a context switch. A 30-second reset starts the process and prevents the worst collisions between work mode and parent mode.