Mark to Market in Economics

Can anyone explain in simple words, what happens when we are offsetting a position to close a deal 3 months later. I understand that we need to take an offsetting position and then calculate the all in forward rate. What do we do after that? I know the steps but I don’t understand the logic.