The distance anything "flies" depends on a combination of the speed at release and the direction at release. Throwing at an agle of 45 degrees from the horizontal will give th greatest distance.
If you ignore air resistance you can calculate the distance easily by calculating the effect of gravity pulling it downwards.
...R