Turning calcTicket into an anonymous function, about to run the code and see if there are any errors.