actual_360: The years between two dates using the actual/360 day basis...

Description Usage Arguments Details Value See Also

View source: R/dates.R

Description

This calculates the years between two dates using the actual/360 day basis convention. This convention counts the number of calendars between the start and end dates and assumes a year consists of 360 days. This is also known as the A/360, Act/360 or French day basis convention.

Usage

1
actual_360(date1, date2)

Arguments

date1

A date-time object

date2

A date-time object

Details

The year fraction is calculated as:

\frac{Number of calendar days}{360}

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_365, actual_actual_isda, is_valid_day_basis, thirty_360_eu_isda, thirty_360_eu_plus, thirty_360_eu, thirty_360_us, thirty_360, yearfrac


ThVWh/ralibr documentation built on April 4, 2018, 4:41 a.m.