I've created a table to store data from my shop. Basically I'm issuing certificates to my customers. Some certificates will have 6 months validity whereas some have one year validity. How can I automatically add expiry date with respect to the type of certificate and issuing date?