Formula and assumptions
Estimated funding = notional × rate × whole funding events. The same notional and rate are assumed at every event. Future rates and position values can change; calculate each event separately if they differ.
A positive rate generally means longs pay shorts; a negative rate reverses this. Zero means no payment.