If the aircraft are at the same latitude, then presumably it's the longitude difference you are considering.
In that case, bear in mind that one minute of longitude only equals a nautical mile at the equator.
Or am I misunderstanding what you're trying to do ?