Futures do not rollover each night, they expire. At the expiration we roll the open positions to the next contract on behalf of the clients. The calculation simulates the process of closing the old contract and opening the new contract. Therefore, according to the spread of the old contract and the new contract, the cash adjustment values in the two directions of buy and sell are calculated.