added date math
added date math