Hello,
do you want to calculate price and total when user changes quantity without form posting or when form is posted?
More friendly solution would be to include JavaScript and listen onchange event on quantity fields.
So when you change value in any quantity field, cart items and cart...