What's the formula for border growth?

Based on multiple posts in this thread, it looks like the border expansion formula has been found in the XML files:

  1. tiles are obtained with culture produced by the city
  2. the culture cost of a tile is 10+(6*n)^1.3 (where n is the number of tiles obtained by culture already...not sure if gold bought ones count)