Freight invoice audit and payment

Which dates should freight software record for demurrage review?