Travel time between terminals can take as long as 30 to 45 minutes; so it would be in your best interest to allow at least 1 and 1/2 hours to 2 hours layover time. If your flight into DFW should be delayed, 40 minutes almost guarantees you would miss your connecting flight.