Calender-spread on Futures Contract-calculating profit or loss

Can anyone explain how to workout profit or loss on a calender spread with an example? I did go through Varsity module on this. But I’m still confused. What I read is that the profit or loss is based on the pricing difference between the contracts (near and far month) when we enter the trade. If so, what happens to the settlement price?

Thanks in advance.