Explaining what var amountToPay is for