Sorry for joining the discussion so late. Typically, the contract with the player would be signed before the loan spell begins, and the mandatory buy clause would be included. As for budgeting, it depends on the specific terms of the contract, but generally, the transfer fee would be counted...