Microsoft 365 features that help users manage their subscriptions, account settings, and billing information.
On this link are the steps to cancel a Microsoft 365 subscription, and while managing the subscription, be sure to disable the recurring billing on the subscription.
You should then be entitled to a pro-rata refund, you can check your eligibility for a refund using the steps on this link.