my purchase form is not calculating the totals correctly