Refund for yearly Subscription

How to refund a user in IAP(yearly subscription) when user has been cancelled the Subscription any time after 3 months of usage.

Refund for yearly Subscription
 
 
Q