Answer:
The formula method is used to calculate termination payments on a prematurely ended swap, where the terminating party compensates the losses borne by the non-terminating party due to the early termination.