This calculates the years between two dates using the actual/365 (fixed) day basis convention. This convention counts the number of calendars between the start and end dates and assumes a year consists of 365 days. This is also known as the Act/365 fixed, A/365 fixed, A/365F and English day basis convention.

actual_365(date1, date2)

Arguments

date1

A date-time object

date2

A date-time object

Value

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

Details

The year fraction is calculated as: $$\frac{Number of calendar days}{365}$$

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.

See also