I almost always arrive in NRT between 3p-8p. At that timeframe, anywhere between 0-30min sounds about right for passport control. If you have little kids, they usually will let you cut to the front of the line. Customs is very quick. If you have bags and you're not familiar with NRT (although NRT is pretty easy to navigate), I'd allow yourself an hour from the gate to the bus to be safe.