Feature Guide: "Safe to Skip" Logic
Overview
The AttendanceTracker app uses mathematical formulas to help you manage your attendance strategically. It calculates exactly how many classes you can afford to miss while staying above your target percentage, or how many you must attend to get back on track.
Logic & Formulas
The app uses your Current Attendance (Present/Total) and your Target Percentage (user-configurable in Stats) to provide advice.
⚠️ The Danger Zone Planner
The Danger Zone screen goes beyond simple math. It allows you to simulate scenarios before they happen.
Interactive Simulation
- Select a Module: Choose the subject you are worried about.
- Select Session Type:
- All: Calculate based on overall attendance.
- Specific: Choose Lecture, Tutorial, or Lab to see advice for that specific component.
- Note: If a module does not have a specific session type (e.g., no Labs), the calculator will show "N/A".
- Simulate Future Skips: Use the interactive slider to simulate skipping 1, 2, or more future classes. The app will instantly calculate:
- New projected attendance percentage.
- Whether this action will drop you into the "Danger Zone".
- Custom Targets: You can adjust the target percentage just for the simulation to see how strict you need to be. (e.g., "What if I need 90% in Labs but only 75% overall?").
Logic & Formulas
1. When You Are Above Target (Safe to Skip)
If your current percentage is higher than your target, the app calculates the "buffer" of classes you can miss.
Formula:
Safe to Skip = Floor( (Present / Target) - Total Classes )
Floor() is a function that rounds down to the nearest integer.
- Present: Number of classes you have attended.
- Target: Your desired minimum percentage (e.g., 0.75, 0.80).
- Total Classes: Sum of Present + Absent sessions.
Example: