Beginning of max X-Y deviation analysis for a given time interval