Greetings, Pleasehelp, from the viewpoint of standard British English, How long have you been in Japan/the States? is correct, implying that the addressee is still in the country, and How long were you in Japan/the States? if s/he has already left.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.