Trying new IP calculation