Before buying parts to experiment with, this works very well for me... Sheldon Brown's Bicycle Gear Calculator