The calculator starts from your current average order value (AOV) and raises it by the percentage you choose, 25% by default. The result is rounded up to the next $5, so a raw figure of $77.50 becomes an $80 threshold, a number that is easy to put in a banner.
It then asks what the extra spend is worth. Extra revenue is the threshold minus your AOV. Extra gross profit is that extra revenue multiplied by your gross margin. Net per gift order is the extra gross profit minus what the gift costs you.
If the net is above zero, the gift pays for itself at that threshold. The largest gift cost you can afford is the extra gross profit, because at that cost the net is exactly zero, which the calculator does not count as profitable. The figures describe an order that grows from your AOV to the threshold, not the orders that would have reached it anyway.