Add a new field with a calculation on every document insertion

Is there anyway for this?????