Changing from Working Visa to SOFA status

Hi does anybody knows how the timeline for transitioning from Japanese working visa to a SOFA status? I'm not planning to go for PR so it's not a problem. I just want to know because I still have a job now, if I need to finalize everything after resigning? Or I can do it during within the same month I'm working?

by Small_Astronaut_11