Simple IP address calculator