[Calendar applet] Fix bug occuring when in afternoon
[Calendar applet] Reduce code redundancy
Asdf