icalendar date calculator(fork from http://code.google.com/p/ical-calculator/)