mill production capacity calculation formula