Check the type of amount and downpayment variables from the function you used.Seems like they are in string format