calculate.overlap function

Calculate Overlap