I have an entity in my CoreData model that contains these 2 attributes:
startDate (NSDate)
terms (int)
I need to grab all the objects where the start plus the terms (which is months) is within the next 30 days.
Here is what I need to do in some pseudo code:
[NSPredicate predicateWithFormat:@"(startDate.months + terms) <= %@", date30DaysFromNow];
This may not be possible (or I am just being dumb).
I know the alternate solution would be to create a new attribute that creates this date when I import the objects.. but if I can I would rather not have to add another attribute if I don't have to.
Thanks!