added code and text file to calculate rough inside/outside the survey