From the Stripe docs:
When you cancel the subscription, the customer\'s card will not be charged again, but no money will be refunded either. If you
If you want to let Stripe handle the refund calculations you can change the subscription qty to 0 then cancel the plan after.