added condition to check for presense of done value of kanban state on a story before calculating a diff between _ValidFrom and _ValidTo