Financial Risk Management
Home
>
Date And Time
>
Year fractions computation
>
Thirty360 (US) day count convention
> The end dates include some end-February dates
Overall Test Results
Requirements
Themes
Capabilities
Features
Report generated 11-04-2023 10:42
Thirty360 (US) Day Count Convention
Thirty360 US
Windows
Day Count Convention
The end dates include some end-February dates
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-02-28
2006-08-31
0.50277778
2
2006-08-31
2007-02-28
0.49444444
3
2007-02-28
2007-08-31
0.50277778
4
2007-08-31
2008-02-29
0.49722222
5
2008-02-29
2008-08-31
0.50277778
6
2008-08-31
2009-02-28
0.49444444
7
2009-02-28
2009-08-31
0.50277778
8
2009-08-31
2010-02-28
0.49444444
9
2010-02-28
2010-08-31
0.50277778
10
2010-08-31
2011-02-28
0.49444444
11
2011-02-28
2011-08-31
0.50277778
12
2011-08-31
2012-02-29
0.49722222
Steps
Outcome
1: The end dates include some end-February dates ({start date=2006-02-28, end date=2006-08-31, day count fraction=0.50277778})
SUCCESS
021ms
Given the dates 2006-02-28 and 2006-08-31
SUCCESS
005ms
When the Thirty360(US) day count convention is used
SUCCESS
001ms
Then the year fraction should be 0.50277778
SUCCESS
009ms
2: The end dates include some end-February dates ({start date=2006-08-31, end date=2007-02-28, day count fraction=0.49444444})
SUCCESS
022ms
Given the dates 2006-08-31 and 2007-02-28
SUCCESS
005ms
When the Thirty360(US) day count convention is used
SUCCESS
002ms
Then the year fraction should be 0.49444444
SUCCESS
009ms
3: The end dates include some end-February dates ({start date=2007-02-28, end date=2007-08-31, day count fraction=0.50277778})
SUCCESS
021ms
Given the dates 2007-02-28 and 2007-08-31
SUCCESS
004ms
When the Thirty360(US) day count convention is used
SUCCESS
Then the year fraction should be 0.50277778
SUCCESS
012ms
4: The end dates include some end-February dates ({start date=2007-08-31, end date=2008-02-29, day count fraction=0.49722222})
SUCCESS
035ms
Given the dates 2007-08-31 and 2008-02-29
SUCCESS
006ms
When the Thirty360(US) day count convention is used
SUCCESS
Then the year fraction should be 0.49722222
SUCCESS
021ms
5: The end dates include some end-February dates ({start date=2008-02-29, end date=2008-08-31, day count fraction=0.50277778})
SUCCESS
029ms
Given the dates 2008-02-29 and 2008-08-31
SUCCESS
007ms
When the Thirty360(US) day count convention is used
SUCCESS
Then the year fraction should be 0.50277778
SUCCESS
015ms
6: The end dates include some end-February dates ({start date=2008-08-31, end date=2009-02-28, day count fraction=0.49444444})
SUCCESS
026ms
Given the dates 2008-08-31 and 2009-02-28
SUCCESS
008ms
When the Thirty360(US) day count convention is used
SUCCESS
001ms
Then the year fraction should be 0.49444444
SUCCESS
008ms
7: The end dates include some end-February dates ({start date=2009-02-28, end date=2009-08-31, day count fraction=0.50277778})
SUCCESS
019ms
Given the dates 2009-02-28 and 2009-08-31
SUCCESS
004ms
When the Thirty360(US) day count convention is used
SUCCESS
Then the year fraction should be 0.50277778
SUCCESS
011ms
8: The end dates include some end-February dates ({start date=2009-08-31, end date=2010-02-28, day count fraction=0.49444444})
SUCCESS
022ms
Given the dates 2009-08-31 and 2010-02-28
SUCCESS
006ms
When the Thirty360(US) day count convention is used
SUCCESS
002ms
Then the year fraction should be 0.49444444
SUCCESS
009ms
9: The end dates include some end-February dates ({start date=2010-02-28, end date=2010-08-31, day count fraction=0.50277778})
SUCCESS
022ms
Given the dates 2010-02-28 and 2010-08-31
SUCCESS
004ms
When the Thirty360(US) day count convention is used
SUCCESS
Then the year fraction should be 0.50277778
SUCCESS
012ms
10: The end dates include some end-February dates ({start date=2010-08-31, end date=2011-02-28, day count fraction=0.49444444})
SUCCESS
047ms
Given the dates 2010-08-31 and 2011-02-28
SUCCESS
009ms
When the Thirty360(US) day count convention is used
SUCCESS
002ms
Then the year fraction should be 0.49444444
SUCCESS
029ms
11: The end dates include some end-February dates ({start date=2011-02-28, end date=2011-08-31, day count fraction=0.50277778})
SUCCESS
032ms
Given the dates 2011-02-28 and 2011-08-31
SUCCESS
007ms
When the Thirty360(US) day count convention is used
SUCCESS
001ms
Then the year fraction should be 0.50277778
SUCCESS
017ms
12: The end dates include some end-February dates ({start date=2011-08-31, end date=2012-02-29, day count fraction=0.49722222})
SUCCESS
025ms
Given the dates 2011-08-31 and 2012-02-29
SUCCESS
007ms
When the Thirty360(US) day count convention is used
SUCCESS
002ms
Then the year fraction should be 0.49722222
SUCCESS
008ms
SUCCESS
0.39s
Serenity BDD version 3.6.22