I’m new using QuantLib (I have no idea how to use it) and I would like to know how to calculate the C+R of a bond, say the current 30Y.
The textbook definition of C+R is the P&L due to the passage of time, given that the term structure turns out to be as expected. How is this done in QuantLib? How to simulate the passage of time (and the P&L)? How to express our expected term structure?
I would appreciate your help a lot.