Untitled

 avatar
unknown
plain_text
2 years ago
516 B
5
Indexable
def get_model_exp_curve_scaling_factor(
        self,
        excess_deductible_by_tiv: float,
        limit_by_tiv: float,
    ) -> float:
        excess_deductible_by_tiv_exposure_curve = self.get_exposure_curve_factor(
            lookup_value=excess_deductible_by_tiv
        )
        limit_by_tiv_exposure_curve = self.get_exposure_curve_factor(
            lookup_value=limit_by_tiv
        )

        return max(
            limit_by_tiv_exposure_curve - excess_deductible_by_tiv_exposure_curve, 0
        )
Editor is loading...