recalculate duration of schedule after every save