timeInterval keeps returning random numbers. I would think the interval would continue to increase with each call but sometimes I get negative numbers and sometimes positive numbers.
NSDate *date = groceryItem.lastPurchased;
double timeInterval = [date timeIntervalSinceNow];
cell.detailTextLabel.text = [NSString stringWithFormat:@"%d", timeInterval];
%d is for integers, use %f for double