You hold the same coin's perpetual in opposite directions, and the funding rates are what differ.
Leg A is the short. When its rate is positive, the short receives notional times that rate at each settlement. Leg B is the long. When its rate is positive, the long pays notional times that rate, so the calculator records that payment as a minus. Settlements are the whole intervals that fit in the holding time: days times 24, divided by the interval, rounded down. Funding on a leg is the per-settlement amount times that count. Net funding is the two legs added. After costs subtracts the USDT you type for opening and closing both legs. The single-leg version, one position and one rate, is the funding rate calculator. How a rate is built from a premium is in how the funding rate is calculated.