The formula is rather simple: `2000*n^0.5`

Now, it is not so very obvious (or known) how n is calculated, however this seems to be the basic formula (it somewhat matches the curve with only a few slight deviations): `(1.15 * combat strength) ^ 1.5`

Mind you, this does take into account damaged units.

There are additional percent modifiers for some subset of innate promotions, which weren't figured out exactly. for example the Jaguar and Mohawk warrior both start at 25% higher than their counterparts, an anti tank gun starts at 25% above it's base 222 (277), while an anti aircraft gun starts at 95% above (432).

Now, there is a more accurate formula which I however didn't test yet myself, for reasons of complexity. Anyway, here you go:

[![enter image description here][1]][1]

You have to click it to properly read it, I couldn't really ave made it any bigger due to how long it is.

[Source][2]


  [1]: https://i.sstatic.net/IrsKd.png
  [2]: https://forums.civfanatics.com/threads/soldiers-rating-in-demographics.442365