The subscription does not immediately end when you cancel it, it continue to be active until the next renewal date, at which point it will expire. You can wait until it expires, or you can contact Apple Support to have them terminate it early.
Click here to contact Apple support to terminate the subscription before it expires: link-> Apple Support <-