“[T]he valuation must be done according to the terms of the arrangement, but in any event in a commercially reasonable manner. This obviously raises the question of what would be seen as commercially reasonable by the courts, but it is likely that a valuation process agreed in advance by the parties would be seen as such unless it was unconscionable”