Fixed calculation of the amountToCall variable