Does anyone have an idea how to build an ip calculator or know of a place where one is?

I think it would be able to calculate based on the block size and starting ip: the ending ip and subnet. Or given the /x convetion such as it could calculate the ending ip, subnet and gateway.

Help appreciated.

Dave Bryant