@vitorps87....., On the last duty day just enter Japan with your passport (90 day visa) instead of the shore pass......,that's it.
Have you actually read this thread? This has been beaten down to a very fine pulp over the years...., take some time and read through it, start from about 3 or 4 years worth and go forward, there is a lot of information about this gig.