Hey, I took a look at the code. Your best bet would be to use the calculator found at: Wolfram|Alpha Widgets: "Simple Subnet Calculator from WolframAlpha" - Free Web & Computer Systems Widget
If this is not ideal, I would do a little more hunting for an online calculator that allows itself to be embedded.
Hope this helps.
That worked out great!