Finance - Maple Programming Help

Finance

 construct new calendar by joining business days from the given two calendars

Parameters

 calendar1 - a name representing a supported calendar (e.g. Toronto, NewYork) or a calendar data structure created using the Calendar constructor calendar2 - a name representing a supported calendar (e.g. Toronto, NewYork) or a calendar data structure created using the Calendar constructor

Description

 • The JoinBusinessDays command creates a new calendar obtained by joining business days from the given two calendars. Any dates that are business days in either of the given two calendars become business days in the new calendar.

Examples

 > with(Finance):
 > Calendar1 := Calendar(Toronto):
 > Calendar2 := Calendar(Simple);
 ${\mathrm{Calendar2}}{:=}{\mathbf{module}}\left({}\right)\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{\mathbf{end module}}$ (1)
 > IsHoliday("January 3, 2006", Calendar1);
 ${\mathrm{false}}$ (2)
 ${\mathrm{true}}$ (3)
 > IsHoliday("January 1, 2006", Calendar1);
 ${\mathrm{true}}$ (4)
 ${\mathrm{false}}$ (5)
 > IsHoliday("January 1, 2006", Calendar3);
 ${\mathrm{true}}$ (6)
 > IsHoliday("January 4, 2006", Calendar3);
 ${\mathrm{false}}$ (7)
 > RemoveHoliday("January 1, 2006", Calendar3):
 > IsHoliday("January 1, 2006", Calendar3);
 ${\mathrm{false}}$ (8)

Compatibility

 • The Finance[JoinBusinessDays] command was introduced in Maple 15.