Based on the IP address and subnet mask input from the user, the following values are calculated:
#1. Network address
#2. Broadcast address
#3. Number of valid hosts
#4. Wildcard mask
#5. Number of mask bits (CIDR notation)
#6. Random IP addresses from the subnet.
A command which, for a given IP address and subnet mask, gives information about Network ID, broadcast address, first IP address, last IP address and network size. Examples using command: (ncalc 192.168.0.150 255.255.255.0) or (ncalc 192.168.0.150/24