How is the cost of city maintenance calculated?

In BTS, hovering over the maintenance cost tells you that it includes a factor for "distance from Capital" and a factor for "total number of cities owned."

Does the maintenance depend on anything other than these two factors, such as the number of turns that have elapsed, or the number of buildings in the city?