Highlight dates happened in cycled period?

Highlight dates happened in cycled period?

Dear all,
I am a newbie to jquery ui. I know how to highlight special days with events. However, now I want to expand this highlight to events which happen in cycled periods but I don't know how.
My projects about:  
- Periods: 35days (continuous periods)
- Speed: 4 levels: low, medium, high, very high
- each period has 4 phases: 1st 5 days, then 10 days, 15 days, and last 5 days.
When this period ends, next period continue.
Please guide me to do this.
Thanks