In the case of a parental union, if the former spouses cannot agree on an amount and a compensatory allowance is to be paid, the court establishes the value of the allowance based on the lesser of the value of the spouse’s impoverishment attributable to their contribution or the value of the other spouse’s enrichment. The court takes into account, in particular, the advantages of the parental union patrimony. In the case of married spouses or spouses in a civil union, the court determines the allowance based in particular on the spouse’s contribution to the enrichment of the other spouse’s patrimony, taking into account the advantages of the matrimonial or civil union regime and the marriage or civil union contract.