Fixed date checks and date creation during computation.