Calculate Macaulay Duration