fix of calc difference between two dates