It seems like a pretty simple function, did you look at the help documentation and see the formula that they use?
Have you tried implementing the function at all?
Excel Price Function[
^] and
Excel Yield Function[
^]
The yield one is even simpler, no accumulations, and they even give variable names...