This is a simple way to calculate network and broadcast IP adressess given any IP address and subnet mask.