Duration, convexity and the optimal management of bond portfolios for insurance companies