- Upkeep = ceil((pow(#troops,1.6)*0.035 - 56) / 24)
- Upkeep of garrisoned troops in fiefs = ceil((pow($troops, 1.02) * 1 - 100)/24)
I believe are: ((((#troops ^ 1.6) * .035) - 56) / 24) the result being rounded up to the next integer.
(((($troops ^ 1.02) * 1) - 100) / 24) the result being rounded up to the next integer.
#troops = total number of troops
$troops = total cost of troops
To be more plain.