simplified point-box distance