You can bunk. But you can't be stupid about it.
Formulas used:
Attendance = (Attended ÷ Total) × 100
Classes needed: solve (A+x)/(T+x) ≥ target
Bunk allowance: solve A/(T+x) ≥ target