Fixed error caused by outdated use of DueDate codes.

- Magic numer codes 1-3 are used for no, late and ok.
- Used syntax style given in due_date.rb to get those codes less
  magically..