Creating functions in Collections

Is there some code I can put in my collection to allow me to run functions(addition or multiplication) on fields within the collection.

Hi,
Hooks that can be added to wix-data operations.
Data hooks run code before or after certain interactions with your site’s collections, check it out here .

Good luck:)