DURATION (PQL - xl)
This function returns the Macaulay duration for an assumed par value of $100
- Library: PQL \ Spreadsheet \ Financial
- Compatibility: Any content (regardless of data source) in the Tabulate spreadsheet module
Syntax
DURATION(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 'DURATION' function - using the same inputs, logic and outputs.