ambush calculation