The question reads: A firm has liabilities as follows: £2,910 at time t = 0 and £7,501 at time t = 4 (time is measured in years). On the asset side the firm has two payments, each for £5,000, at time t = 1 and t = 3. The annual effective rate is i = 5% p.a.
Compute the effective duration for both assets and liabilities.
I'm new to this topic and struggle to understand it. I understand duration to be a measure of the volatility of the present value of a cash flow with respect to changes in the interest rate. In order to calculate the duration I suppose I would use this formula:
$v = -1/PV * dPV/di$
I can calculate the present value of, let's say firstly, the liabilities to be:
PV = 2910 + $(\frac{1}{1+i})^4$7501 = 9081.09.
But where do I go from there? How would I use that value to calculate the duration? Thanks in advance.