Trip margin is an increment of drilling mud density to provide overbalance so as to compensate the swabbing effect while pulling out of hole.
You can quickly calculate how much trip margin required by this following simple equation.
Trip Margin = Mud Yield Point ÷ [11.7 x (Hole diameter – Drill pipe diameter)]