Traverse document for any element that has a due date. Then compare that date to today's date.  Use the difference for whatever purpose you like. My original, color the table cells yellow if the item is due in two days or less