a7dfd208d2
Old formula: (total - late - abnormal) / total - Did not subtract missing (so 100% with 缺勤 2) - Subtracted abnormal twice (already hidden late/early/ot) - Could never reach 0% New: read backend's pre-computed attendance_rate = (total - missing) / total * 100 Wing Fung (10 rec, 2 missing) now 80% (was 100%) Cindy (10 rec, 4 missing) now 60% (was 90%)