Added function processInterval

This function is used by addYears, addMonths, addWeeks, addDays, addHours, addMinutes & addSeconds