Finance Package Commands For Day Counting
Overview
Day Count Conventions
See Also
The Financial Modeling package supports most standard day count conventions used in the industry, which include Actual/Actual, Actual/360 and 30/360 conventions.
Day counting convention defines the way in which interest accrues over time. Generally, we know the interest earned over some reference period, (for example, the time between coupon payments), and we are interested in calculating the interest earned over some other period.
The day counting convention is usually expressed as X/Y, where X defines the way in which the number of days between the two dates is calculated, and Y defines the way in which the total number of days in the reference period is measured. The interest earned between the two dates is
Number_of_days_between_two_datesNumber_of_days_in_reference_period×Interest_earned_in_reference_period
Three day counting conventions commonly used in the United States are
Actual/Actual
Actual/360
30/360
DayCount
-
return the number of days between two dates according to a given convention
YearFraction
return the interval between two dates as a fraction of a year according to a given convention
Actual/Actual Conventions
The actual/actual interest accrual convention is recommended for euro-denominated bonds. There are at least three different interpretations of actual/actual. These three interpretations are identified as:
Actual/Actual (ISDA)
Actual/Actual (ISMA)
Actual/Actual (AFB)
The difference between the ISDA, ISMA and AFB methods can be reduced to a consideration of the denominator to be used when calculating accrued interest. In all three cases, the numerator will be equal to the actual number of days from (and including) the last coupon payment date or period end date, to (but excluding) the current value date or period end date.
Under the Actual/Actual (ISDA) approach, the denominator varies depending on whether a portion of the relevant calculation period falls within a leap year. For the portion of the calculation period falling within a leap year, the denominator is 366, for the other portion the denominator is 365. The ISDA convention is also known as Actual/Actual (Historical), Actual/Actual, Act/Act, and according to ISDA also Actual/365, Act/365, and A/365.
Under the Actual/Actual (ISMA) approach, the denominator is the actual number of days in the coupon period multiplied by the number of coupon periods in the year. The ISMA and US Treasury convention is also known as Actual/Actual (Bond).
Under the Actual/Actual (AFB) approach, the denominator is either 365 if the calculation period does not contain February 29th, or 366 if the calculation period includes February 29th. The AFB convention is also known as actual/actual (Euro).
Consider some examples:
withFinance:
First you will use a day counter that follows the ISDA convention.
DayCount⁡Jan-01-2006,July-01-2006,ISDA
181
The numerator is equal to the actual number of days from (and including) the last coupon payment date or period end date, to (but excluding) the current value date or period end date. Therefore, the number of days from January 1st, 2006 to July 1st, 2006 can be calculated by adding the number of days in January, February, March, April, May, and June together:
31+28+31+30+31+30
YearFraction⁡Jan-01-2006,July-01-2006,ISDA
0.4958904110
The denominator for ISDA is 365 since the year of 2006 is not a leap year:
DayCount⁡Jan-01-2006,July-01-2006,ISDA365
181365
evalf
DayCount⁡Jan-01-2008,April-20-2008,ISDA
110
YearFraction⁡Jan-01-2008,April-20-2008,ISDA
0.3005464481
DayCount⁡Jan-01-2008,April-20-2008,ISDA366
55183
DayCount⁡April-20-2008,Jan-01-2009, ISDA
256
YearFraction⁡April-20-2008,Jan-01-2009, ISDA
0.6994535519
DayCount⁡April-20-2008,Jan-01-2009, ISDA366
128183
In the second example you will use the ISMA convention.
DayCount⁡Jan-01-2006,July-01-2006,ISMA
As you can see the number of days between January 1st, 2006 and July 1st, 2006 is the same according to both conventions. However, the length of the period from January 1st, 2006 to July 1st, 2006 as a fraction of the year is different.
YearFraction⁡Jan-01-2006,July-01-2006,ISMA
0.5000000000
The denominator is the actual number of days in the coupon period multiplied by the number of coupon periods in the year.
DayCount⁡Jan-01-2008,April-20-2008,ISMA
YearFraction⁡Jan-01-2008,April-20-2008,ISMA
0.3333333333
DayCount⁡Jan-01-2008,April-01-2008,ISMA
91
YearFraction⁡Jan-01-2008,April-01-2008,ISMA
0.2500000000
Finally, consider the AFB day counting convention.
DayCount⁡Jan-01-2006,July-01-2006,AFB
YearFraction⁡Jan-01-2006,July-01-2006,AFB
The denominator is either 365 if the calculation period does not include February 29th, or 366 if the calculation period includes February 29th.
DayCount⁡Jan-01-2006,July-01-2006,AFB365
DayCount⁡Jan-01-2008,April-20-2008,AFB
YearFraction⁡Jan-01-2008,April-20-2008,AFB
DayCount⁡Jan-01-2008,April-20-2008,AFB366
DayCount⁡April-20-2008,Jan-01-2009, AFB
YearFraction⁡April-20-2008,Jan-01-2009, AFB
0.7013698630
DayCount⁡April-20-2008,Jan-01-2009, AFB366
DayCount⁡April-20-2008,Jan-01-2009, AFB365
256365
Actual/360 Conventions
Actual/360 is used for U.S. Treasury bills and other money market instruments. The numerator is equal to the actual number of days from (and including) the last coupon payment date or period end date, to (but excluding) the current value date or period end date. The denominator is always 360. Note that the interest earned in a whole year of 365 is 365/360 times the quoted rate. The actual/360 day count convention is also known as Act/360 or A/360.
The numerator is equal to the actual number of days from (and including) the last coupon payment date or period end date, to (but excluding) the current value date or period end date.
DayCount⁡Jan-01-2006,Jan-03-2007,Actual360
367
YearFraction⁡Jan-01-2006,Nov-01-2006, Actual360
0.8444444444
The denominator is always 360.
DayCount⁡Jan-01-2006,Jan-03-2007,Actual360360
367360
evalf⁡
1.019444444
DayCount⁡Jan-01-2006,Jan-01-2007,Actual360
365
YearFraction⁡Jan-01-2006,Jan-01-2007,Actual360
1.013888889
DayCount⁡Jan-01-2006,Jan-01-2007,Actual360360
7372
There is another day count convention, Actual/365 (Fixed), which is very similar to Actual/360, except that the denominator is always 365. Actual/365 (Fixed) day count convention is also know as Act/365 (Fixed), A/365 (Fixed), or A/365F. Actual/365 (without Fixed) is an alias for Actual/Actual (ISDA).
DayCount⁡Jan-01-2008,Jan-01-2009,Actual365Fixed
366
YearFraction⁡Jan-01-2008,Jan-01-2009,Actual365Fixed
1.002739726
DayCount⁡Jan-01-2008,Jan-01-2009,Actual365Fixed365
366365
30/360 Conventions
The use of 30/360 for corporate and municipal bonds indicates that we assume 30 days per month and 360 days per year when we carry out calculations. This convention is very simple since it doesn't need to consider how many days each month has or whether the year is a leap year or not. There are three 30/360 day count conventions:
Thirty360USA
If the ending date is the 31st of a month and the starting date is earlier than the 30th of a month, the ending date becomes equal to the 1st of the next month, otherwise the ending date becomes equal to the 30th of the same month.
Thirty360European
Starting dates or ending dates that occur on the 31st of a month become equal to the 30th of the same month.
Thirty360Italian
Starting or ending dates that occur in February and are greater than 27 become equal to 30 for computational sake.
DayCount⁡Jan-01-2006,Nov-01-2006,Thirty360USA
300
The numerator is the product of 10 and 30.
If the ending date is October 31st, 2006, it returns the same results:
DayCount⁡Jan-01-2006,Oct-31-2006,Thirty360USA
DayCount⁡Jan-01-2006,Oct-30-2006,Thirty360USA
299
DayCount⁡Jan-01-2006,Oct-2-2006,Thirty360USA
271
From the above three interesting results, you can see that if the ending date is the 31th of a month and the starting date is earlier than the 30th of a month, the ending date becomes equal to the 1st of the next month, otherwise the ending date becomes equal to the 30th of the same month.
For Thirty360European convention, starting dates or ending dates that occur on the 31st of a month become equal to the 30th of the same month.
DayCount⁡Jan-01-2006,Nov-01-2006,Thirty360European
DayCount⁡Jan-01-2006,Oct-31-2006,Thirty360European
DayCount⁡Jan-01-2006,Oct-30-2006,Thirty360European
Also assume that February has 30 days:
DayCount⁡Jan-01-2006,Feb-28-2006,Thirty360European
57
DayCount⁡Jan-01-2006,March-1-2006,Thirty360European
60
Finally, the Thirty360Italian day counting convention assumes that starting or ending dates that occur in February and are greater than 27 become equal to 30.
DayCount⁡Jan-01-2006,Feb-27-2006,Thirty360Italian
56
DayCount⁡Jan-01-2006,Feb-28-2006,Thirty360Italian
59
DayCount⁡Jan-01-2006,March-1-2006,Thirty360Italian
Other Day Count Conventions
The Simple day counting convention tries to ensure that the whole month distances are returned as a simple fraction.
DayCount⁡Jan-01-2008,Nov-21-2008,Simple
320
The above result is calculated as 30*10 + 20, which simply takes 30 days per month for the 10 whole months, plus 20 days in November.
YearFraction⁡Jan-01-2008,Nov-21-2008, Simple
0.8888888889
The denominator is always 360 days per year.
DayCount⁡Jan-01-2008,Nov-21-2008,Simple360
89
Term Structures worksheet, Cash Flow Analysis worksheet, Lattice Methods worksheet, Stochastic Processes worksheet, Calendars worksheet
Download Help Document