Is it possible to add values of a database to the calculation?