NDepend.API Documentation
AnnualInterestPercent(Debt,AnnualInterest) Method
NDepend.TechnicalDebt Namespace > ExtensionMethodsDebtUsableInCQLinq Class > AnnualInterestPercent Method : AnnualInterestPercent(Debt,AnnualInterest) Method
The estimated cost-to-fix a set of issues, it can be negative in case of debt-diff value.
The cost-to-not-fix per year a set of issue, it can be negative in case of annual-interest-diff value.
Gets the estimated annual debt interest percent, expressed in percent per year.
Syntax
[Extension()]
public static double AnnualInterestPercent( 
   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 cost-to-not-fix per year a set of issue, it can be negative in case of annual-interest-diff value.
Remarks
The annual interest percent is equal to 100 multiplied by the annualInterest divided by the debt.
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 debt annual interest percent is 20% per year.
Notice that an annual interest percent higher than 100% means that during the next 12 monthes, it would be cheaper to fix the debt than not to fix it.
This method accepts Debt.Zero value for debt, in which case it returns zero. If debt is overflow or annualInterest is overflow this method returns 0.
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
AnnualInterestPercent Property