You take the number of front chain ring teeth, divide it by the number of teeth on the rear cog/ sprocket and then multiply that by the wheel diameter. This will give you gear inches. Now to calculate how far you actually travel which each pedal revolution you have to multiply the gear inches by 3.14.