I know how to calculate them for bonds. But it came to my mind this.
In bonds, Macaulay duration technically is a weighted average of coupon payments. But can it be somehow calculated for swaps? Or when dealing with swaps, you always need to proxy duration as the "contractual duration"?