add logic for a habit being up to date