Question: how to calculate date of expiry?
Answer: If you need an expiration date at the end month, use the EOMONTH function, which returns the last day of the month, n months in the future or past. An easy way to calculate the 1st day of a month is to use EOMONTH to get the last day of the previous month, then simply add 1 day.