Just a guess, but there are standard external ballistics calculators around (i.e. Sierra and some freeware) that can do this calc.
Interesting.....all this talk about ballistics, drag, calculus, etc. and after almost four pages someone finally mentions a ballistics calculator.

There are quite a few on-line, but most of them are limited in their range.
One of the factors that I was surprised no one mentioned is the ballistic coefficient (BC). This, in laymans terms, is a measure of a projectiles ability to overcome air resistance in flight and can vary greatly depending on the shape of the projectile. As an extreme example, a .50 cal. round lead ball would have a BC of around .120 (going from memory) while the US M33 Ball projectile a BC of .670. This equates to a HUGE difference in trajectory. BC is also affected by altitude and temperature(changes in air density) as well as the decreasing velocity of the projectile.
A few have mentioned the destabilization of the bullet and I wonder about this. I wonder to what extent bullets destabilize. I shoot rifles competitively and have had the long range shooters tell me that it's quite important that the bullet remain supersonic all the way to the target. This due to the fact that a projectile will destabilize
slightly when making the transition from trans to subsonic...not however to the point of tumbling. I wonder if a projectile will eventually begin to tumble. I have my doubts....especially in the case of a long, aerodynamic projectile such as those used in the 50 BMG cartridge.
230G/35Whelen