You have to cancel at least 24 hours before the end of your subscription.