Form with payment calculation is not calculating right