I got slightly different results with provided formula. Buildings can have different base output. For example Mines produce 20 units without any bonuses, other facilities usually produce 10 without bonuses.
Base output * N workers + [Base output * N workers + (Base output * N workers) / 10] * (N bonuses * N workers)
Base output * N workers + [Base output * N workers + (Base output * N workers) / 10] * (N bonuses * N workers)
Report or Exploit