To include database information in a calculation, you'll need to add a Hidden field to the form and pre-populate its value using PHP during the Form Prepare event. To learn how you can make that happen see the PHP Scripts guide. Then, you will be able to use your hidden field in the calculation.