legal proceedings that the court would not have so acted had it been correctly apprised of the facts and the law. The factor attracting applicability of restitution is not the act of the court being wrongful or a mistake or error committed by the court; the test is whether on account of an act of the party persuading the court to pass an order held at the end as not sustainable, has resulted in one party gaining an advantage which it would not have otherwise earned, or the other party has suffered an impoverishment which it would not have suffered but for the order of the court and the act of such party. The quantum of restitution, depending on the facts and circumstances of a given case, may take into consideration not only what the party excluded would have made but also what the party under obligation has or might reasonably have made. There is nothing wrong in the parties demanding being placed in the same position in which they would have been had the court not intervened by its