DayCount - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Finance

  

DayCount

  

calculate the day count according to a given convention

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

DayCount(todate, daycounter)

DayCount(fromdate, todate, daycounter)

Parameters

fromdate

-

a string containing a date specification in a format recognized by ParseDate or a Date data structure; first date

todate

-

a string containing a date specification in a format recognized by ParseDate or a Date data structure; second date

daycounter

-

(optional) day counter or the name of a day counting convention

Description

• 

The DayCount command returns the number of days between fromdate and todate according to the day counting convention specified by daycounter. If no day counter is specified, the default one will be used.

• 

See DayCounter or CalendarsAndDayCounters for a detailed description of the supported day count conventions and additional examples.

Examples

withFinance:

DayCountDec-20-2005,Nov-05-2006

320

(1)

DayCountDec-20-2005,Nov-05-2006,ISMA

320

(2)

DayCountDec-20-2005,Nov-05-2006,Simple

315

(3)

DayCountDec-20-2005,Nov-05-2006,OneDay

1

(4)

DCFinance:-DayCounterOneDay:

DayCountDec-20-2005,Nov-05-2006,DC

1

(5)

Compatibility

• 

The Finance[DayCount] command was introduced in Maple 15.

• 

For more information on Maple 15 changes, see Updates in Maple 15.

See Also

Finance[DayCounter]

Finance[FormatDate]

Finance[ParseDate]

Finance[YearFraction]