It depends on how busy US Customs and Immigration is when you arrive as to how much time it will take. You will have to check your luggage again for your flight to Portland after you clear customs. When you exit customs take the free Air Train counter-clockwise (the inside track)to Terminal 3 which is one stop and check your bags and check in for your flight.
It depends on how busy US