I changed the data to 19.3, but somehow it doesn't feel right. So I've done some testing and trigonometry, and came up with the figure of 21.7, which gives the most accurate distance.
I've made a JSGME ready fix, and if someone is interested, it can be downloaded
here.