properly subtract amount payed from debt when user enters a new payment