product with width/height calculations

I think has been discussed somewhere but i cant find it again...
i know complicated attribute pricing is possible with Rules, and something about custom line items, but i wonder how to accomplish a price in the case where
1. something has a size, width, height, etc. Price per inch.
2. There are different materials at different prices per inch.
3. the same product can add multiple items (First is 23"x34"x6" and the second 23"x34"x10")
4. A set price is set when a second level is added.

Is there anyway to do this with commerce?? the only other idea i had was a custom javascript calculator that passes the price into the price field, but that seems to hacky.

Posted: Feb 18, 2013