Improved time rule
Refactor summary
Add time rules mechanism to summary. Still need to do recurrences.
Refactor summary
Use correct time rule algorithm