order of succession
noun
°A formula or algorithm that determines who inherits an office upon the death, resignation, or removal of its current occupant.