                aggregatedDuration += priorityDuration
                let taskPriorityAdvanceDate = task.lastPriorityChangeDate.dateByAddingTimeInterval(aggregatedDuration)
                
+//               print("---------- TASK: \(task.title) --------------")
+//               print("LCD: \(task.lastPriorityChangeDate.prettyDateString())")
+//               print("should advance on: \(taskPriorityAdvanceDate.prettyDateString())")
+//               print("current date: \(currentDate.prettyDateString())")
+//               print("")
+               
                if currentDate >= taskPriorityAdvanceDate {
                   newPriority = priority.nextPriority
                }

         })
      }
   }
}

/*
print("---------- TASK: \(task.title) --------------")
print("task LCD: \(task.lastPriorityChangeDate.prettyDateString())")
print("should advance on: \(taskPriorityAdvanceDate.prettyDateString())")
print("current date: \(currentDate.prettyDateString())")
print("")
*/
 
 ***/

extension TaskPriority
{
   // The number of seconds that the priority is supposed to last for
   var duration: NSTimeInterval? {
