Made the function Calcticket into a variable.