Sounds like "arrival time" in this case refers to the ground transportation, in which case you might not have time to check in and clear security. Time for a different plan. Buffalo airport is sweet though, no real traffic to speak of and things are super easy there. But 40 minutes is too close.