The rule of thumb is that you leave AT LEAST 3 hours from arrival to departure for international flights and 1.5 hours for domestic. You still have to get your bags, clear customs, re-check your bags and then go through security for your next flight. All of this can take a couple of hours.