Work out attendance needed to reach target instantly with clear inputs, formula shown and shareable results.
Solving attended + x over held + x equals the target gives x = (target x held - attended) / (1 - target), the number of consecutive classes needed. Attendance recovers slowly because every class attended also adds to the denominator, which is why the required streak is longer than intuition suggests.
Classes needed
x = (target x classes held - classes attended) / (1 - target), target as a decimal
Skippable classes
skippable = floor(attended / target) - classes held
x = (target x classes held - classes attended) / (1 - target), target as a decimal. Solving attended + x over held + x equals the target gives x = (target x held - attended) / (1 - target), the number of consecutive classes needed.
Attendance recovers slowly because every class attended also adds to the denominator, which is why the required streak is longer than intuition suggests.
Enter classes attended so far, classes held so far, target attendance. The defaults shown are a realistic worked example — swap in your own figures to get a result you can use.