MDURATION (PQL - xl)

This function calculates the modified Macaulay duration of a security with an assumed par value of $100

  • Library: PQL \ Spreadsheet \ Financial
  • Compatibility: Any content (regardless of data source) in the Tabulate spreadsheet module

Syntax

MDURATION(settlement, maturity, coupon, yld, frequency, OPTIONAL basis)

Function Arguments

Name

Description

Type

Optional

settlement

Settlement date for the security

StringOrNumber

maturity

Maturity date for the security

StringOrNumber

coupon

Annual coupon rate

Number

yld

Annual yield for the security

Number

frequency

Frequency of payment, number of coupon payments per year; must be 1, 2, or 4

Number

basis

Integer representing the basis for day count

Number

Y

Comments

This function is the same as the Microsoft Excel 'MDURATION' function - using the same inputs, logic and outputs.