Dynamic coupon expiration date

I want to insert unique coupons to Welcome and birthday emails with a dynamic expiration date, that is, the coupon expires 3 months from the email being sent.
Is there any way to do it please?

Thank you so much