fixed datetime subtraction issue