I don't know about this calc posted, by my own testing show, that in order to get 80% loyalty, you need to have number of soliders equal to 1/8 of city population size (large unit scale). Sometimes something smaller number is enough, but I gess that's because of some sort of rounding up effect.