For Delaware, I eyeball the distance from the center of population to the nearest border (again NJ) at maybe three miles. But Delaware's so small that I feel like that doesn't count; something like (distance to border)/(square root of state area) might be worth looking at.