Calculated field on mail
You could create a custom token to do the calculation and use the token in your mail.  See eg https://wiki.civicrm.org/confluence/display/CRMDOC/Customized+%28and+Custom%29+Tokens