You need to create an acf/save_post action with a priority > 10.
In this action get the values of the other 2 fields, apply logic and update the value of the 3rd field. Make sure you include the value of $post_id when getting and updating the fields.