Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 6ca22d6c authored by Denis Merigoux's avatar Denis Merigoux
Browse files

Monthly gainreally monthly

parent 16f7997e
Branches
No related tags found
No related merge requests found
......@@ -546,7 +546,7 @@ class MaxGainFromNewChild(DichotomicSearch):
def result_found_lines(self, s: Solver, new_search_param_value: float) -> List[Tuple[str, Any]]:
if self.deltai is None:
raise TypeError("deltai is None !")
deltai_m = self.deltai
deltai_m = self.deltai // 12
return [
("Changement mensuel après redistribution", deltai_m),
("Gain relatif avec nouvel enfant", "{0:.1f}%".format(new_search_param_value))
......@@ -670,7 +670,7 @@ class MaxGainFromDifferentRevenueDistribution(DichotomicSearch):
def result_found_lines(self, s: Solver, new_search_param_value: float) -> List[Tuple[str, Any]]:
if self.deltai is None:
raise TypeError("deltai is None !")
deltai_m = self.deltai
deltai_m = self.deltai // 12
if self.m2 is None:
raise TypeError("m2 is None !")
is_concubinage = s.model().evaluate(self.m2.composition == Composition.concubinage())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment