updates tip amount based on input amount change