Hello Seven,
Welcome
to the Developing Universal Windows apps forum!
Please read the sticky posts, especially the Guide
to posting: subject line tags and Known
Issues for Windows 10 SDK and Tools .
We don’t know your project type so please add tags to your title to make the question clear.
Here I assume you are using Windows Runtime. So about your question:
>>My doubt is how to give acknowledge to store for Durable product.
It is not set from your code, it is from here when you submit your IAP product:

When we set a durable item, we need to give it a product lifetime.
Then in our code we can use the following code to calculate the remainingdays:
var remainingDays = (productLicense1.ExpirationDate - DateTime.Now).Days;
The productLicense1 is our product’s license: licenseInformation.ProductLicenses[“testduraable”]
Best regards,
Barry
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.