Report generated 11-04-2023 10:42

Thirty360 (US) Day Count Convention

  Thirty360 US   Windows   Day Count Convention

Miscellaneous calculation

Scenario Outline

Given the dates <start date> and <end date>
When the Thirty360(US) day count convention is used
Then the year fraction should be <day count fraction>

Examples: 

# Start Date End Date Day Count Fraction
1 2006-01-31 2006-02-28 0.077777778
2 2006-01-30 2006-02-28 0.077777778
3 2006-02-28 2006-03-03 0.008333333
4 2006-02-14 2006-02-28 0.03888889
5 2006-09-30 2006-10-31 0.083333333
6 2006-10-31 2006-11-28 0.077777778
7 2007-08-31 2008-02-28 0.49444444
8 2008-02-28 2008-08-28 0.50000000
9 2008-02-28 2008-08-30 0.50555556
10 2008-02-28 2008-08-31 0.50833333
11 2007-02-28 2008-02-28 0.99444444
12 2007-02-28 2008-02-29 1.00000000
13 2008-02-29 2009-02-28 1.00000000
14 2008-02-29 2008-03-30 0.083333333
15 2008-02-29 2008-03-31 0.086111111
Steps Outcome
SUCCESS 024ms
SUCCESS 019ms
SUCCESS 025ms
SUCCESS 021ms
SUCCESS 022ms
SUCCESS 022ms
SUCCESS 021ms
SUCCESS 021ms
SUCCESS 017ms
SUCCESS 019ms
SUCCESS 023ms
SUCCESS 023ms
SUCCESS 019ms
SUCCESS 023ms
SUCCESS 021ms
SUCCESS 0.39s
Serenity BDD version 3.6.22