Javascript date calculator. Does durations and stuff.