WebCab Bonds for COM v2.01

FixedInterestBonds.GrossRedemptionYieldWhenCouponDueWithExplicitTime Method 

Calculates the gross redemption yield if there is less than half a year to the next coupon payment and there is a whole number of years from the next coupon until the maturity of the bond.

public double GrossRedemptionYieldWhenCouponDueWithExplicitTime(
   double price,
   double coupon,
   double nextCoupon,
   int years2Redemption,
   double years2Coupon
);

Parameters

price
The current market price of the bond.
coupon
The coupon per annum payable in half-yearly installments.
nextCoupon
The next interest payment which will be received in years2Coupon years expressed as a decimal.
years2Redemption
The number of (whole) years from the next interest payment date to the redemption date.
years2Coupon
The number of years (in decimal format) until the next coupon payment.

Return Value

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

Remarks

That is, the total (annual) yield of the fixed interest bond from now until maturity where the tax implications of the investor are not taken into account.

Remarks:

Exceptions

Exception TypeCondition
NoSolutionExceptionThrown if no solution was found for the yield within the range 0 - 200 percent.

See Also

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