I know all those gear inches charts are easy if you know what you're looking at, but my simplistic method is to divide the cassette into the cranks... as in:
34 divided by 27 = 1.259 and 30 divided by 24 = 1.25. So, as close as damn it... 34/27 = 30/24.