Since IP v6 is out we may no longer need this but there are tons of company that still on IPv4 so in that case this still may be used
http://jodies.de/ipcalc