Driver arrival and detention

How should freight audit software check detention charges?