how are flights determined