We can measure the portfolio duration by calculating the weighted average of the duration of the bonds in the portfolio. The proportion of the portfolio that a security comprises can be considered as weights. Portfolio duration can be represented as:
w_{1}D_{1} + w_{2}D_{2} + w_{3}D_{3} + .........w_{K}D_{K}
Where,
w_{i} = Market value of bond i/market value of the portfolio.
D_{i }= Duration of bond i.
K = Number of bonds in the portfolio.
Calculating the rupee price change for a given number of basis points for each security in the portfolio and then adding all the price changes can be considered as an alternative procedure for calculating the duration of a portfolio. The portfolio duration can be arrived at by adjusting the percentage price change that is obtained by dividing the total of the price changes by the initial market value of the portfolio.