This is how I'd write it: If the number of hosts on the network is N , and the maximum number of hosts in each portion limits to is Max , then the number of managers , M , will be calculated by ... "then" is optional, and some people wouldn't bother. I personally like to use it, especially when there's quite a big distance from "if".
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.