completed calcSubnet() and designed page.