Hi
Does anyone have any code that will do the same thing as Excel's yield function just allow the user to input different coupons??

For example the coupon would be 0% for years 1 and 2 and 5% for years 3 and 4

Any Help is greatly appreciated

Thanks,
Tim