Formula for scapy