Fix bug where times were being used in comparison of expected and planned completion dates