Spreadsheets are fun. I would calculate the torque in 100 rpm intervals, if possible, and then use those numbers to calculate at torque vs. speed curve using the different tire sizes and diff gears. The best combination is the one with the most area/torque under the curve. You would just want to consider the speed range you're targeting.