/// <summary> /// Recalculates the remaining amount. /// </summary> public void Recalculate() { AmountDifference = (Payers.Where(p => p.Amount != null).Sum(p => p.Amount) ?? 0) - (Debtors.Where(p => p.Amount != null).Sum(p => p.Amount) ?? 0); }