I need to finish my shipping module for my online store to go live but I have a HUGE problem.

I cannot figure out how to get my shipping charges to update when the customer choose a quantity from a product in the available options (prduct attributes). For example:


Product: Brochures
Attributes: Qty: 25 (if this quantity is selected, it offers two shipping charges, one for Priority and one for Rush shipping)
Qty: 50 (same thing, but with a higher shipping charge for both Priority and Rush shipments)


Like I said, this is the only thing keeping me from opening my online store to the public. I would really appreciate it if someone offers their advice.
Thanks in advance.