rewriting bond yield calculations