Bug 977050 - Automate changing end date/time in Calendar

This patch is just for ui review not code review currently.
Sure. Let's rename it as `_duration` and make a comment for it.