Wonder If someone can help me with physics

Hi guys.

Firstly let me say love this site and love this forum. Plenty of Flash problems have been sorted thanks to all the people on this site.

I have a quick question (Well might night be quick).

What I am trying to do is work out a formula based on a ball being launched at an angle and then having its direction affected by wind.

I will have the following variables. Speed (The speed will be a random scale that when you click the mouse button it will stop at a speed and launch at that speed). Wind (Will be randomly generated) and Distance.

At the end of the day any help would be appreciated, or a simple FLA file, or maybe web link. I have trawlled for formulas all over the web, but no joy.

I have probably been a bit vauge.

Well cheers guys.