Update CalendarFunctions.php