Get the year fraction or accrual fraction between two dates according to the provided convention.

Description

Get the year fraction or accrual fraction between two dates according to the provided convention.

Example Sheet

Conventions.xlsx

Arguments

  • date1 The first date.(Date)
  • date2 The second date.(Date)
  • convention The day count convention to use for getting the accrual fraction.(DayCountConvention)