Home > Requirements > Date And Time > Year Fractions Computation > Thirty360 (european) Day Count Convention
Report generated 11-04-2023 10:42

Feature: Thirty360 (european) Day Count Convention

Names:

The name of this convention is 30/360 European; Also known as

  • 30E/360
  • 30/360 ICMA
  • 30/360 ISMA
  • 30S/360
  • Eurobond Basis
  • Special German

Computation Method:

The number of accrued days is calculated on the basis of a year of 360 days with 12 30-day months.
The year fraction is calculated as the number of accrued days divided by 360. Here is the general formula:

\[YearFraction = \frac{360*\left( Y_{2} - Y_{1}\right ) + 30*\left( M_{2} - M_{1}\right ) + \left( D_{2} - D_{1}\right )}{360} \]

Where:

\(Y_{1}\) is the year, expressed as a number, in which the first day of the calculation period falls;

\(Y_{2}\) is the year, expressed as a number, in which the day immediately following the last day included
in the calculation period falls;

\(M_{1}\) is the calendar month, expressed as a number, in which the first day of the calculation period falls;

\(M_{2}\) is the calendar month, expressed as a number, in which the day immediately following the last day included
in the calculation period falls;

\(D_{1}\) is the first calendar day, expressed as a number, of the calculation period or compounding period,
unless such number would be 31, in which case \(D_{1}\) will be 30;

\(D_{2}\) is the calendar day, expressed as a number, immediately following the last day included in the calculation period or compounding period,
unless such number would be 31, in which case \(D_{2}\) will be 30.

Scenarios

Given the dates {start date} and {end date}

When the Thirty360(European) day count convention is used

Then the year fraction should be {day count fraction}

Examples:

start dateend dateday count fraction
2006-08-202007-02-200.500000
2007-02-202007-08-200.500000
2007-08-202008-02-200.500000
2008-02-202008-08-200.500000
2008-08-202009-02-200.500000
2009-02-202009-08-200.500000

Given the dates {start date} and {end date}

When the Thirty360(European) day count convention is used

Then the year fraction should be {day count fraction}

Examples:

start dateend dateday count fraction
2006-02-282006-08-310.505555556
2006-08-312007-02-280.494444444
2007-02-282007-08-310.505555556
2007-08-312008-02-290.497222222
2008-02-292008-08-310.502777778
2008-08-312009-02-280.494444444
2009-02-282009-08-310.505555556
2009-08-312010-02-280.494444444
2010-02-282010-08-310.505555556
2010-08-312011-02-280.494444444
2011-02-282011-08-310.505555556
2011-08-312012-02-290.4972222

Given the dates {start date} and {end date}

When the Thirty360(European) day count convention is used

Then the year fraction should be {day count fraction}

Examples:

start dateend dateday count fraction
2006-01-312006-02-280.077777778
2006-01-302006-02-280.077777778
2006-02-282006-03-030.013888889
2006-02-142006-02-280.038888889
2006-09-302006-10-310.083333333
2006-10-312006-11-280.077777778
2007-08-312008-02-280.494444444
2008-02-282008-08-280.50000000
2008-02-282008-08-300.505555556
2008-02-282008-08-310.505555556
2007-02-282008-02-281.00000000
2007-02-282008-02-291.002777778
2008-02-292009-02-280.997222222
2008-02-292008-03-300.086111111
2008-02-292008-03-310.086111111

Feature Coverage By Scenario

Test Outcomes

Test Performance

Key Statistics

Number of Scenarios 3 Total Duration 784ms
Total Number of Test Cases 33 Fastest Test 15ms
Number of Manual Test Cases 0 Slowest Test 29ms
Tests Started Apr 11, 2023 10:42:12 Average Execution Time 19ms
Tests Finished Apr 11, 2023 10:42:13 Total Execution Time 772ms

Automated Tests

feature Scenario Context Steps Started Total Duration Result
Thirty360 (European) 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.500000
windows 3 10:42:12 017ms SUCCESS
Thirty360 (European) 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.500000
windows 3 10:42:12 018ms SUCCESS
Thirty360 (European) 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.500000
windows 3 10:42:12 017ms SUCCESS
Thirty360 (European) 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.500000
windows 3 10:42:12 018ms SUCCESS
Thirty360 (European) 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.500000
windows 3 10:42:12 017ms SUCCESS
Thirty360 (European) 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.500000
windows 3 10:42:12 018ms SUCCESS
Thirty360 (European) 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.505555556
windows 3 10:42:12 017ms SUCCESS
Thirty360 (European) 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.494444444
windows 3 10:42:12 019ms SUCCESS
Thirty360 (European) 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.505555556
windows 3 10:42:12 023ms SUCCESS
Thirty360 (European) 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.497222222
windows 3 10:42:12 021ms SUCCESS
Thirty360 (European) 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.502777778
windows 3 10:42:12 022ms SUCCESS
Thirty360 (European) 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.494444444
windows 3 10:42:12 023ms SUCCESS
Thirty360 (European) 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.505555556
windows 3 10:42:12 018ms SUCCESS
Thirty360 (European) 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.494444444
windows 3 10:42:12 018ms SUCCESS
Thirty360 (European) 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.505555556
windows 3 10:42:12 019ms SUCCESS
Thirty360 (European) 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.494444444
windows 3 10:42:12 020ms SUCCESS
Thirty360 (European) 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.505555556
windows 3 10:42:12 027ms SUCCESS
Thirty360 (European) 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.4972222
windows 3 10:42:12 029ms SUCCESS
Thirty360 (European) day count convention 1: Miscellaneous calculation
start date=2006-01-31, end date=2006-02-28, day count fraction=0.077777778
windows 3 10:42:12 024ms SUCCESS
Thirty360 (European) day count convention 2: Miscellaneous calculation
start date=2006-01-30, end date=2006-02-28, day count fraction=0.077777778
windows 3 10:42:12 022ms SUCCESS
Thirty360 (European) day count convention 3: Miscellaneous calculation
start date=2006-02-28, end date=2006-03-03, day count fraction=0.013888889
windows 3 10:42:12 019ms SUCCESS
Thirty360 (European) day count convention 4: Miscellaneous calculation
start date=2006-02-14, end date=2006-02-28, day count fraction=0.038888889
windows 3 10:42:12 026ms SUCCESS
Thirty360 (European) day count convention 5: Miscellaneous calculation
start date=2006-09-30, end date=2006-10-31, day count fraction=0.083333333
windows 3 10:42:12 017ms SUCCESS
Thirty360 (European) day count convention 6: Miscellaneous calculation
start date=2006-10-31, end date=2006-11-28, day count fraction=0.077777778
windows 3 10:42:12 018ms SUCCESS
Thirty360 (European) day count convention 7: Miscellaneous calculation
start date=2007-08-31, end date=2008-02-28, day count fraction=0.494444444
windows 3 10:42:12 016ms SUCCESS
Thirty360 (European) day count convention 8: Miscellaneous calculation
start date=2008-02-28, end date=2008-08-28, day count fraction=0.50000000
windows 3 10:42:12 017ms SUCCESS
Thirty360 (European) day count convention 9: Miscellaneous calculation
start date=2008-02-28, end date=2008-08-30, day count fraction=0.505555556
windows 3 10:42:12 015ms SUCCESS
Thirty360 (European) day count convention 10: Miscellaneous calculation
start date=2008-02-28, end date=2008-08-31, day count fraction=0.505555556
windows 3 10:42:13 018ms SUCCESS
Thirty360 (European) day count convention 11: Miscellaneous calculation
start date=2007-02-28, end date=2008-02-28, day count fraction=1.00000000
windows 3 10:42:13 015ms SUCCESS
Thirty360 (European) day count convention 12: Miscellaneous calculation
start date=2007-02-28, end date=2008-02-29, day count fraction=1.002777778
windows 3 10:42:13 016ms SUCCESS
Thirty360 (European) day count convention 13: Miscellaneous calculation
start date=2008-02-29, end date=2009-02-28, day count fraction=0.997222222
windows 3 10:42:13 017ms SUCCESS
Thirty360 (European) day count convention 14: Miscellaneous calculation
start date=2008-02-29, end date=2008-03-30, day count fraction=0.086111111
windows 3 10:42:13 015ms SUCCESS
Thirty360 (European) day count convention 15: Miscellaneous calculation
start date=2008-02-29, end date=2008-03-31, day count fraction=0.086111111
windows 3 10:42:13 015ms SUCCESS

Manual Tests

No manual tests were recorded
Serenity BDD version 3.6.22