Sir, there’s a question in BPP, called AWP Co. where to calculate the duration, the yield to maturity is calculated.
The question provides with yearly government bonds rates and the spread for different bonds.
Wouldn’t it be fine if I calculated the duration of bond by discounting at the govt. yield + credit spread rather than calculating the yield to maturity and then calculating the duration?