Copy formula field values to Deal Value

Copy formula field values to Deal Value

Hello,
in Deals module i have created a formula field to calculate the Deal value, and sicne the Deal value system field is static i can't turn it into a formula, is there is script to copy the result from the formula field into the deal value?