We first calculate the present value of cash flows as follows,
P=1.06180+1.06280+1.0631080=1,053.46
Thus, the Macaulay duration is given by,
Macaulay Duration=∑i=1nti[∑PV(Ct)PV(Ct)]
=1,053.461.06180×1+1,053.461.06280×2+1,053.461.0631080×3
=2.7891