The name of this convention is Actual/Actual ISDA; Also known as
Computation Method:
The number of accrued days is equal to the actual number of days between the start date and the end date.
The year fraction is the sum of the accrued days falling in a non-leap year divided by 365 and the
accrued days falling in a leap year divided by 366. Here is the general formula:
\[YearFraction = \frac{Days\ not\ in\ leap\ year}{365} + \frac{Days\ in\ leap\ year}{366}\]
The days in the numerators are calculated on a Julian day difference basis. In this convention the first day
of the period is included and the last day is excluded.
Given the dates {start date} and {end date}
When the ActualActual(ISDA) day count convention is used
Then the year fraction should be {day count fraction}
Given the dates {start date} and {end date}
When the ActualActual(ISDA) day count convention is used
Then the year fraction should be {day count fraction}
Examples:
start date | end date | day count fraction | |
---|---|---|---|
2006-02-28 | 2006-08-31 | 0.504109589 | |
2006-08-31 | 2007-02-28 | 0.495890411 | |
2007-02-28 | 2007-08-31 | 0.504109589 | |
2007-08-31 | 2008-02-29 | 0.49726776 | |
2008-02-29 | 2008-08-31 | 0.50273224 | |
2008-08-31 | 2009-02-28 | 0.495890411 | |
2009-02-28 | 2009-08-31 | 0.504109589 | |
2009-08-31 | 2010-02-28 | 0.495890411 | |
2010-02-28 | 2010-08-31 | 0.504109589 | |
2010-08-31 | 2011-02-28 | 0.495890411 | |
2011-02-28 | 2011-08-31 | 0.504109589 | |
2011-08-31 | 2012-02-29 | 0.49726776 |
Given the dates {start date} and {end date}
When the ActualActual(ISDA) day count convention is used
Then the year fraction should be {day count fraction}
Given the dates {start date} and {end date}
When the ActualActual(ISDA) day count convention is used
Then the year fraction should be {day count fraction}
Examples:
start date | end date | day count fraction | |
---|---|---|---|
2003-11-01 | 2004-05-01 | 0.49772438 | |
1999/02-01 | 2000-07-01 | 1.412336253 | |
2002-08-15 | 2004-01-15 | 1.419073284 | |
1999-07-30 | 2000-06-30 | 0.919193053 | |
1999-11-30 | 2000-04-30 | 0.415540085 | |
2006-01-31 | 2006-02-28 | 0.076712329 | |
2006-01-30 | 2006-02-28 | 0.079452055 | |
2006-02-28 | 2006-03-03 | 0.008219178 | |
2006-02-14 | 2006-02-28 | 0.038356164 | |
2006-09-30 | 2006-10-31 | 0.084931507 | |
2006-10-31 | 2006-11-28 | 0.076712329 | |
2007-08-31 | 2008-02-28 | 0.495890411 | |
2008-02-28 | 2008-08-28 | 0.49726776 | |
2008-02-28 | 2008-08-30 | 0.50273224 | |
2008-02-28 | 2008-08-31 | 0.505464481 | |
2007-02-28 | 2008-02-28 | 1.00000000 | |
2007-02-28 | 2008-02-29 | 1.001367989 | |
2008-02-29 | 2009-02-28 | 0.99726776 | |
2008-02-29 | 2008-03-30 | 0.081967213 | |
2008-02-29 | 2008-03-31 | 0.084699454 |
Number of Scenarios | 4 | Total Duration | 1s |
Total Number of Test Cases | 42 | Fastest Test | 15ms |
Number of Manual Test Cases | 0 | Slowest Test | 45ms |
Tests Started | Apr 11, 2023 10:42:16 | Average Execution Time | 25ms |
Tests Finished | Apr 11, 2023 10:42:17 | Total Execution Time | 1s |
feature | Scenario | Context | Steps | Started | Total Duration | Result |
---|---|---|---|---|---|---|
ActualActual (ISDA) day count convention |
1: The end dates do not involve last day of February
start date=2006-08-20, end date=2007-02-20, day count fraction=0.5041096 |
3 | 10:42:16 | 015ms | ||
ActualActual (ISDA) day count convention |
2: The end dates do not involve last day of February
start date=2007-02-20, end date=2007-08-20, day count fraction=0.4958904 |
3 | 10:42:16 | 015ms | ||
ActualActual (ISDA) day count convention |
3: The end dates do not involve last day of February
start date=2007-08-20, end date=2008-02-20, day count fraction=0.5041096 |
3 | 10:42:16 | 036ms | ||
ActualActual (ISDA) day count convention |
4: The end dates do not involve last day of February
start date=2008-02-20, end date=2008-08-20, day count fraction=0.4972678 |
3 | 10:42:16 | 015ms | ||
ActualActual (ISDA) day count convention |
5: The end dates do not involve last day of February
start date=2008-08-20, end date=2009-02-20, day count fraction=0.5041096 |
3 | 10:42:16 | 037ms | ||
ActualActual (ISDA) day count convention |
6: The end dates do not involve last day of February
start date=2009-02-20, end date=2009-08-20, day count fraction=0.4958904 |
3 | 10:42:16 | 024ms | ||
ActualActual (ISDA) day count convention |
1: The end dates include some end-February dates
start date=2006-02-28, end date=2006-08-31, day count fraction=0.504109589 |
3 | 10:42:16 | 022ms | ||
ActualActual (ISDA) day count convention |
2: The end dates include some end-February dates
start date=2006-08-31, end date=2007-02-28, day count fraction=0.495890411 |
3 | 10:42:16 | 020ms | ||
ActualActual (ISDA) day count convention |
3: The end dates include some end-February dates
start date=2007-02-28, end date=2007-08-31, day count fraction=0.504109589 |
3 | 10:42:16 | 019ms | ||
ActualActual (ISDA) day count convention |
4: The end dates include some end-February dates
start date=2007-08-31, end date=2008-02-29, day count fraction=0.49726776 |
3 | 10:42:16 | 034ms | ||
ActualActual (ISDA) day count convention |
5: The end dates include some end-February dates
start date=2008-02-29, end date=2008-08-31, day count fraction=0.50273224 |
3 | 10:42:16 | 018ms | ||
ActualActual (ISDA) day count convention |
6: The end dates include some end-February dates
start date=2008-08-31, end date=2009-02-28, day count fraction=0.495890411 |
3 | 10:42:16 | 025ms | ||
ActualActual (ISDA) day count convention |
7: The end dates include some end-February dates
start date=2009-02-28, end date=2009-08-31, day count fraction=0.504109589 |
3 | 10:42:16 | 020ms | ||
ActualActual (ISDA) day count convention |
8: The end dates include some end-February dates
start date=2009-08-31, end date=2010-02-28, day count fraction=0.495890411 |
3 | 10:42:16 | 017ms | ||
ActualActual (ISDA) day count convention |
9: The end dates include some end-February dates
start date=2010-02-28, end date=2010-08-31, day count fraction=0.504109589 |
3 | 10:42:16 | 017ms | ||
ActualActual (ISDA) day count convention |
10: The end dates include some end-February dates
start date=2010-08-31, end date=2011-02-28, day count fraction=0.495890411 |
3 | 10:42:16 | 016ms | ||
ActualActual (ISDA) day count convention |
11: The end dates include some end-February dates
start date=2011-02-28, end date=2011-08-31, day count fraction=0.504109589 |
3 | 10:42:16 | 016ms | ||
ActualActual (ISDA) day count convention |
12: The end dates include some end-February dates
start date=2011-08-31, end date=2012-02-29, day count fraction=0.49726776 |
3 | 10:42:16 | 022ms | ||
ActualActual (ISDA) day count convention |
1: The start date and the end date include two leap years
start date=2000-01-01, end date=2004-01-01, day count fraction=4.00 |
3 | 10:42:16 | 020ms | ||
ActualActual (ISDA) day count convention |
2: The start date and the end date include two leap years
start date=2000-01-01, end date=2004-02-29, day count fraction=4.16120219 |
3 | 10:42:16 | 022ms | ||
ActualActual (ISDA) day count convention |
3: The start date and the end date include two leap years
start date=2000-01-01, end date=2005-01-01, day count fraction=5.00 |
3 | 10:42:16 | 019ms | ||
ActualActual (ISDA) day count convention |
4: The start date and the end date include two leap years
start date=2000-01-01, end date=2005-12-31, day count fraction=5.9972603 |
3 | 10:42:16 | 022ms | ||
ActualActual (ISDA) day count convention |
1: Miscellaneous calculation
start date=2003-11-01, end date=2004-05-01, day count fraction=0.49772438 |
3 | 10:42:16 | 020ms | ||
ActualActual (ISDA) day count convention |
2: Miscellaneous calculation
start date=1999/02-01, end date=2000-07-01, day count fraction=1.412336253 |
3 | 10:42:17 | 019ms | ||
ActualActual (ISDA) day count convention |
3: Miscellaneous calculation
start date=2002-08-15, end date=2004-01-15, day count fraction=1.419073284 |
3 | 10:42:17 | 035ms | ||
ActualActual (ISDA) day count convention |
4: Miscellaneous calculation
start date=1999-07-30, end date=2000-06-30, day count fraction=0.919193053 |
3 | 10:42:17 | 024ms | ||
ActualActual (ISDA) day count convention |
5: Miscellaneous calculation
start date=1999-11-30, end date=2000-04-30, day count fraction=0.415540085 |
3 | 10:42:17 | 033ms | ||
ActualActual (ISDA) day count convention |
6: Miscellaneous calculation
start date=2006-01-31, end date=2006-02-28, day count fraction=0.076712329 |
3 | 10:42:17 | 033ms | ||
ActualActual (ISDA) day count convention |
7: Miscellaneous calculation
start date=2006-01-30, end date=2006-02-28, day count fraction=0.079452055 |
3 | 10:42:17 | 041ms | ||
ActualActual (ISDA) day count convention |
8: Miscellaneous calculation
start date=2006-02-28, end date=2006-03-03, day count fraction=0.008219178 |
3 | 10:42:17 | 040ms | ||
ActualActual (ISDA) day count convention |
9: Miscellaneous calculation
start date=2006-02-14, end date=2006-02-28, day count fraction=0.038356164 |
3 | 10:42:17 | 033ms | ||
ActualActual (ISDA) day count convention |
10: Miscellaneous calculation
start date=2006-09-30, end date=2006-10-31, day count fraction=0.084931507 |
3 | 10:42:17 | 034ms | ||
ActualActual (ISDA) day count convention |
11: Miscellaneous calculation
start date=2006-10-31, end date=2006-11-28, day count fraction=0.076712329 |
3 | 10:42:17 | 031ms | ||
ActualActual (ISDA) day count convention |
12: Miscellaneous calculation
start date=2007-08-31, end date=2008-02-28, day count fraction=0.495890411 |
3 | 10:42:17 | 036ms | ||
ActualActual (ISDA) day count convention |
13: Miscellaneous calculation
start date=2008-02-28, end date=2008-08-28, day count fraction=0.49726776 |
3 | 10:42:17 | 025ms | ||
ActualActual (ISDA) day count convention |
14: Miscellaneous calculation
start date=2008-02-28, end date=2008-08-30, day count fraction=0.50273224 |
3 | 10:42:17 | 023ms | ||
ActualActual (ISDA) day count convention |
15: Miscellaneous calculation
start date=2008-02-28, end date=2008-08-31, day count fraction=0.505464481 |
3 | 10:42:17 | 017ms | ||
ActualActual (ISDA) day count convention |
16: Miscellaneous calculation
start date=2007-02-28, end date=2008-02-28, day count fraction=1.00000000 |
3 | 10:42:17 | 030ms | ||
ActualActual (ISDA) day count convention |
17: Miscellaneous calculation
start date=2007-02-28, end date=2008-02-29, day count fraction=1.001367989 |
3 | 10:42:17 | 045ms | ||
ActualActual (ISDA) day count convention |
18: Miscellaneous calculation
start date=2008-02-29, end date=2009-02-28, day count fraction=0.99726776 |
3 | 10:42:17 | 028ms | ||
ActualActual (ISDA) day count convention |
19: Miscellaneous calculation
start date=2008-02-29, end date=2008-03-30, day count fraction=0.081967213 |
3 | 10:42:17 | 016ms | ||
ActualActual (ISDA) day count convention |
20: Miscellaneous calculation
start date=2008-02-29, end date=2008-03-31, day count fraction=0.084699454 |
3 | 10:42:17 | 018ms |