How to determine when a task has been completed ( move to DONE)

Check Add a done date to done tasks that is query-able