Auto calculate total price