Add upcoming events in the custom index

Hi Kevin,  I need codes that will add upcoming events to the custom index.

THanks.