Calendar on Validate and on Update event

When the user changes the time with the drag and drop event on the calendar, is there a way to run a script to do some validation.
I use this for a time management system and need to calculate the hours start and end time.

Any suggestions?