Apart from cases of business management and undue payment, a person who benefits from unjustified enrichment to the detriment of another owes, to the person who is impoverished thereby, compensation equal to the lesser of the two values of the enrichment and the impoverishment.