compute days diff from midnight