WebCab Bonds for COM v2.01

FixedInterestBonds.NetRedemptionYieldWithAccuracy Method 

Calculates the net redemption yield excluding capital gains tax (CGT) where the term to redemption is an integer number of years.

public double NetRedemptionYieldWithAccuracy(
   double price,
   double coupon,
   double taxRate,
   DateTime evaluationDate,
   DateTime redemptionDate,
   double upperBound,
   double precision,
   string businessCalendarName
);

Parameters

price
The current market price of the bond.
coupon
The annual coupon of the bond convertible half-yearly (that is, paid in half-yearly installments).
taxRate
The investor's rate of tax on income in decimal format (i.e. 1 percent = 0.01).
evaluationDate
The date on which the net redemption yield is evaluated.
redemptionDate
The redemption date of the bond.
upperBound
The upper bound of the interval over which the yield will be sort. If you are unsure as to a suitable value then by setting this parameter to 2 you will cover all cases where the yield is less than 200 percent.
precision
The accuracy of the result. This is an internal parameter used by the equation solver algorithm, the smaller the precision required the more accurate the result but also the longer the computation will take. A suitable value for this parameter is 0.0001.
businessCalendarName
The name of one of the implemented business calendars, "London" by default.

Return Value

The net redemption yield in decimal format (i.e. 0.01 = 1 percent).

Remarks

That is, the yield of the bond is evaluated where the income tax of the investor is taken into account (i.e. the gross yield minus the income tax) and there are an integer number of years until the bond matures.

This procedure offers the same functionality as the method (double, double, double, int) except that here the internal equation solving algorithm parameters can be set. These parameters are the upper bound of the yield over which the solution is searched and the precision of the returned result can be specified.

Remarks:

Exceptions

Exception TypeCondition
NoSolutionExceptionThrown if no solution to the equation corresponding to the yield can be found for the given search interval.

See Also

FixedInterestBonds Class | WebCab.COM.Finance.Bonds Namespace | NetRedemptionYield