Setting the duration of the external event when it is dragged to calendar