fix calculation of needs_attention_count when marking date-limited agency as complete