Implemented find_delta() function
Added find_delta() function def