calculation of daily goal streaks