NDepend.API Documentation
BreakingPoint(Debt,AnnualInterest) Method
NDepend.TechnicalDebt Namespace > ExtensionMethodsDebtUsableInCQLinq Class > BreakingPoint Method : BreakingPoint(Debt,AnnualInterest) Method
The estimated cost-to-fix a set of issues, it can be negative in case of debt-diff value.
The estimated cost-to-not-fix per year a set of issue, it can be negative in case of annual-interest-diff value.
Gets the time point from now when the estimated cost-to-not-fix the debt will reach the estimated cost-to-fix the debt. This time point is named the breaking point.
Syntax
[Extension()]
public static TimeSpan BreakingPoint( 
   Debt debt,
   AnnualInterest annualInterest
)

Parameters

debt
The estimated cost-to-fix a set of issues, it can be negative in case of debt-diff value.
annualInterest
The estimated cost-to-not-fix per year a set of issue, it can be negative in case of annual-interest-diff value.
Remarks
The breaking point is the debt divided by the annualInterest.
For example if the estimated cost-to-fix the debt is equal to 10 man-days, and the estimated cost-to-not-fix the debt is equal to 2 man-days per year (this is the annualInterest) then the breaking point is equal to 5 years from now.
Notice that a breaking point lower than a year means that during the next 12 monthes, it would be cheaper to fix the debt than not to fix it.
This method accepts AnnualInterest.Zero value for annualInterest, in which case it returns System.TimeSpan.System.TimeSpan.Zero. If annualInterest is zero, then this method returns a zero System.TimeSpan.
If the division leads to a too large value to be handled by System.TimeSpan, this method will return System.TimeSpan.System.TimeSpan.MaxValue or System.TimeSpan.System.TimeSpan.MinValue depending on the sign of the too large value.
If debt is overflow or annualInterest is overflow this method returns System.TimeSpan.System.TimeSpan.Zero.
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

ExtensionMethodsDebtUsableInCQLinq Class
ExtensionMethodsDebtUsableInCQLinq Members
Overload List
BreakingPoint Property