I agree with the previous posters - 30 minutes may feel a bit crunched, but anything over that is usually fine. They now even have special customs lanes if you're late for your flight connection that are supposed to be 'express' - haven't had to use them, but at least it's an option.