Adding overlap calculation function