CalcPamtHeader3