# Is there a think script in the archives that provides the number of days till earnings? # # kirill.kirillov posted in ThinkScript Yahoo Group Message 2 of 3 , May 15, 2015 # def nextEarningsOffset = GetEventOffset(Events.EARNINGS); def nextEarningsDay = GetValue(GetYYYYMMDD(), nextEarningsOffset); def dayCount; if nextEarningsDay >= GetYYYYMMDD() { dayCount = DaysTillDate(nextEarningsDay); } else { dayCount = Double.NaN; } AddLabel(yes, dayCount);