actual_actual_isda: The years between two dates using the Actual/Actual ISDA day...

Description Usage Arguments Details Value See Also

Description

This calculates the years between two dates using the Actual/Actual ISDA day basis convention. This convention counts the number of calendars between the start and end dates. The definition of a year is contingent on whether the year is a leap year or not. The year fraction is calculated as:

\frac{d_1}{{dy}_1} + \frac{d_2}{{dy}_2} + y_2 - y_1 - 1

Usage

1
actual_actual_isda(date1, date2)

Arguments

date1

A date-time object

date2

A date-time object

Details

where:

The order of date1 and date2 is not important. If date1 is less than date2 then the result will be non-negative. Otherwise, the result will be negative.

Value

a numeric value representing the number of years between date1 and date2.

See Also

Other counter methods: actual_360, actual_365, is_valid_day_basis, thirty_360_eu_isda, thirty_360_eu_plus, thirty_360_eu, thirty_360_us, thirty_360, year_frac


imanuelcostigan/fmdates documentation built on March 24, 2020, 8:54 p.m.