Some clarifications on things that I didn't explain well: 0:28 the recalculateFormulas method is available in both Classes. I only go over the Formula class method in this video but I did include a code example for the SObject class method in the Github Gist which can be found in the description. 1:09 the recalculateFormulas method will only work for formula fields that do not contain references to fields that belong to a related object.
Some clarifications on things that I didn't explain well:
0:28 the recalculateFormulas method is available in both Classes. I only go over the Formula class method in this video but I did include a code example for the SObject class method in the Github Gist which can be found in the description.
1:09 the recalculateFormulas method will only work for formula fields that do not contain references to fields that belong to a related object.