There is an exact formula floating around somewhere on here. Is something like; number of warehouses x 1.4.
Forerunner supply pads are exempt from this formula, they give you a base amount.