1.Correct duration calculation when to check overlapping of event display
2.Simplify event display bubble calculation in timeline
. Fixes: https://bugs.launchpad.net/bugs/1515722, https://bugs.launchpad.net/bugs/1523594, https://bugs.launchpad.net/bugs/1527857.
Approved by Jenkins Bot, Kunal Parmar.