I know that, I have the code stored stored as a session variable, I just don't know how to do the calculation...
Attached is what I've tried so far, but it doesn't really make too much sense to me.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.