How long is one meant to take a break.

Hello community,

I understand that it’s needed for us writers to take a break from our WIPS. As I am still in the process of my editing phase, this question just popped in my mind, how long are we meant to take a break? Is it after we have just finished writing or should we just dive into editing as soon as possible. To add, will taking a break detach us from what we love or will it keep us motivated to write more? It’s been on my mind for quite a while and I really need an answer. Thanks.