Description of the Macaulay Duration formula with Market value follows

The illustration shows the formula to calculate the Macaulay Duration with Market value.