Fairly simple math gets you close. Speed of the target, distance of the target, average bullet speed. Get your time of flight, say .5 second, then from the speed of the moving target you figure how far it gets in that .5 second. Is the target going with or against the wind...
Sometimes instinct does surprising things.