Yes, they are 31's but why are you using the diameter?

The calulator I see wants MPH, RPM, Gear, & CIRCUMFERENCE (inches}