First off, you should have a general idea about where the motor likes to be geared, ie its powerband. From there you have to decide whether to gear more for the straightaway or infield, ie where are you going to cut the most time off your lap? A good starting point should be to gear so that your motor accelerates and tops out near the end of the straightaway. Check your laptimes to see how it changes if you gear up or down.