Tag mathematics in transportation