Room to bunk
Paste a small example into the tool and change one part at a time.
Your attendance is 90%, and the result says you can miss 10 more classes in a row and stay at 75% or above. After those 10 it is 45 of 60, exactly 75%.
Type the classes you attended and the classes held so far. You get your attendance percentage, how many classes you can miss in a row and stay at the minimum, or how many you must attend to reach it.
Last updated
Coddy teaches you by writing real code in your browser - interactive lessons, instant feedback, and AI help when you get stuck.
This calculator is for students in India, where the 75% figure comes from CBSE: its examination bye-laws require 75% attendance to sit the Class X and XII board exams, and CBSE can grant a relaxation of up to 25% for documented reasons such as a medical emergency or national or international sports events. Colleges are different. Under the UGC's 2025 regulations on minimum standards of instruction, each university or college decides its own minimum attendance through its statutory bodies, so yours may be 75% or another figure.
So the minimum here starts at 75 and you can change it. From your classes attended and held, the calculator shows your attendance now and one of two answers: how many classes in a row you can miss and still be at or above the minimum, or how many in a row you must attend to get back to it. Exactly 75% counts as meeting a 75% minimum.
If you know how many classes are left in the term, type them too. The calculator then shows how many of them you can still miss and end the term at the minimum, and your attendance at the end if you attend them all. When your college counts attendance subject by subject, work out each subject on its own. Nothing you type is sent or saved.
The number of classes you were present for, from your college portal or the register.
Every class that has taken place up to now, the ones you missed included. It cannot be less than the classes attended.
It starts at 75. Change it to your college's or board's rule, for example 80 or 85. Decimals work.
Optional. Type the classes left in the term to see how many of them you can still miss and where your attendance ends if you attend them all.
The result shows your attendance, the classes attended and missed, and either the classes you can still miss or the classes needed. With the classes still to come it adds the classes you can miss this term, or says that even attending all of them leaves you under the minimum.
Worked out with the calculator for a 75% and an 85% minimum. Every count is classes in a row, starting now.
| Attended / held | Attendance now | At a 75% minimum | At an 85% minimum |
|---|---|---|---|
| 90 / 100 | 90% | Miss 20 in a row | Miss 5 in a row |
| 45 / 50 | 90% | Miss 10 in a row | Miss 2 in a row |
| 85 / 100 | 85% | Miss 13 in a row | None: the next absence takes you under |
| 72 / 90 | 80% | Miss 6 in a row | Attend 30 in a row |
| 40 / 50 | 80% | Miss 3 in a row | Attend 17 in a row |
| 38 / 50 | 76% | None: the next absence takes you under | Attend 30 in a row |
| 60 / 80 | 75% | None: the next absence takes you under | Attend 54 in a row |
| 35 / 50 | 70% | Attend 10 in a row | Attend 50 in a row |
| 30 / 45 | 66.67% | Attend 15 in a row | Attend 55 in a row |
Paste a small example into the tool and change one part at a time.
Your attendance is 90%, and the result says you can miss 10 more classes in a row and stay at 75% or above. After those 10 it is 45 of 60, exactly 75%.
Copy the original value, run the tool, then compare the result.
Your attendance is 66.67%. The result says to attend the next 15 classes in a row to reach 75%: then it is 45 of 60. At an 85% minimum the same record needs 55 classes in a row.
Take a value from your own work and use this tool to inspect or prepare it.
You are at 74.29% and need the next 2 classes in a row to reach 75%. Over the term you can still miss 7 of the 30 classes to come, and attending all 30 ends the term at 82%.
Classes attended 30, Classes held so far 45, Minimum attendance 75, Classes still to come 10You need 15 classes in a row but only 10 are left, so the result says that even attending all 10 classes to come, you end at 72.73%, under 75%. At that point only a relaxation your board or college grants can help, so talk to them early.
import math
def attendance(attended, held, minimum=75): percent = round(attended / held * 100, 2) # Whole-number arithmetic, so 75% exactly never fails on rounding surplus = attended * 100 - held * minimum if surplus >= 0: return percent, "can miss", surplus // minimum return percent, "must attend", math.ceil(-surplus / (100 - minimum))
print(attendance(45, 50))print(attendance(30, 45))print(attendance(60, 80))(90.0, 'can miss', 10) (66.67, 'must attend', 15) (75.0, 'can miss', 0)
The surplus is how far above the minimum you are, counted in hundredths of a class. Divided by the minimum it gives the classes you can miss; a shortfall divided by 100 minus the minimum gives the classes you need. 60 of 80 is exactly 75%, so nothing can be missed.
Divide the classes you attended by the classes held and multiply by 100. 45 of 50 classes is 90%, and 30 of 45 is 66.67%.
Divide the classes attended by 0.75, subtract the classes held and round down. With 45 of 50 that is 60 − 50 = 10 classes in a row. The calculator does this for any minimum you type.
Multiply the classes held by 0.75, subtract the classes attended, divide by 0.25 and round up. With 30 of 45 that is (33.75 − 30) ÷ 0.25 = 15 classes in a row.
For CBSE board exams, yes: the examination bye-laws require 75% to sit the Class X and XII exams, with a relaxation of up to 25% for documented reasons. For colleges there is no single national figure: under the UGC 2025 regulations each institution sets its own minimum.
Yes, for a rule that asks for at least 75%. 60 of 80 classes meets it, and the calculator then tells you that missing the next class takes you under.
Change the minimum. With 85 of 100 classes, an 85% minimum leaves no class to miss, while a 75% minimum lets you miss 13 in a row.
Type the classes still to come. The calculator shows how many of them you can miss and still end at the minimum, or, if attending all of them is not enough, the attendance you would end at: 72.73% from 30 of 45 with 10 classes left.
Yes. Run it once per subject with that subject's classes attended and held. The arithmetic is the same for one subject or for all of them.