Hello guys,
I got a question regarding some financial maths:
I want to write a function in VBA that calculates the following:
C: coupon
F: face value
P: price
y: Yield to maturity
P = C/(1+y)^1 + C/(1+y)^2 + C/(1+y)^3 + ... + C/(1+y)^n + F/(1+y)^n
Now let's assume C, F and P are given, I want to obtain y with a VBA tool, what's my play?
I dont want to use regular Excel.
Thanks in advance.
I got a question regarding some financial maths:
I want to write a function in VBA that calculates the following:
C: coupon
F: face value
P: price
y: Yield to maturity
P = C/(1+y)^1 + C/(1+y)^2 + C/(1+y)^3 + ... + C/(1+y)^n + F/(1+y)^n
Now let's assume C, F and P are given, I want to obtain y with a VBA tool, what's my play?
I dont want to use regular Excel.
Thanks in advance.