Pre-formula is executed before inserting any records. For example you canuse it for deleting records from the target object just before modifying anything.
For an easier way to create your formulas, do not forget to use the formula editor.