Amount Field Function

Amount Field Function

I record 3 amounts figures as a currency field inside a DEAL.

I want to make the Amount field be READ ONLY & have a function that adds up the NEW CUSTOM currency fields and populates this into the standard Amount field on a CREAT or EDIT scenario.

The three custom fields are:

Accommodation
Catering
Restaurant

Any help would be great.