I guess I should not give numbers from memory. Hamburg was 7 Gm out of 12 pop. Garrison was 2. New German cap was 17 tiles away, mine was 7.
I would be presumptive to assume any city is totally immune to flip, especially a captured city (outside the capital). But I had taken these cities -- the core of Germany about 500 years earlier. In the same campaign, I razed Berlin, captured the French core cities, Italian, and then Greece, and eliminated Russia. Later moved my capital to Rome, and Paris became my best city ever. I absolutely did not expect a flip after this amount of time and development.
According to your Calc, Annares, the flip chance was .002, no garrison required.
According the FlipCalc it was .00025 chance of flip.
I won the game by culture 66 turns later.