optimized tardy/present calculations