Make update logic easier to understand

- Comment the day logic
- Make update logic easier to read