I'm trying to make a subscription based system, once a person registers he/she can choose a package for 1/3/6 months and pay for it, once the payment is successful, a date stamp is added, this date stamp is based on the package i.e if the package is purchased today it will be of the same day 3 months ahead or 1 month or whatever.
I'm having problems creating a function that solves this.