Gino,
I need something similar for a client. A buyer would enter a size carat of a gem and the price is per carat so the calculation needs to be done on the fly because there is no set item price. I am searching for the answer and will keep in touch if you do the same.
Take care.
Jim