change date to numeric for computation