creat isSameDeadline(a,b) to compare deadlines