; and (BB) the date on which the funding agreement expires; or (bb) such date as may be mutually agreed upon by the Secretary, the withdrawing Indian Tribe, and the Tribal organization that signed the compact and funding agreement on behalf of the withdrawing Indian Tribe or Tribal organization. (E) Distribution of funds If an Indian Tribe or Tribal organization eligible to enter into a self-determination contract or a compact or funding agreement fully or partially withdraws from a participating Tribal organization, the withdrawing Indian Tribe— (i) may elect to enter into a self-determination contract or compact, in which case— (I) the withdrawing Indian Tribe or Tribal organization shall be entitled to its Tribal share of unexpended funds and resources supporting the programs that the Indian Tribe will be carrying out under its own self-determination contract or compact and funding agreement (calculated on the same basis as the funds were initially allocated to the funding agreement of the Tribal organization); and (II) the funds referred to in subclause (I) shall be withdrawn by the Secretary from the funding agreement of the Tribal organization and transferred to the withdrawing Indian Tribe, on the condition that sections 102 and 105(i), as appropriate, shall apply to the withdrawing Indian Tribe