An implicit formula for boundary current separation