update calendar code to only include events for the next 7 days