Find the minimum score to pass a course.
Passing is a points problem, not a percentage problem. The course total is what has been graded plus what remains, the pass mark converts that into an absolute points requirement, and subtracting what you have already earned leaves the points that must come from the work still outstanding. Expressing that as a percentage of the remaining points is what makes it actionable, and it is often reassuring: needing 220 of 400 remaining points is 55 percent, easier than the 60 percent pass mark suggests.
Absolute requirement
Points needed overall = (points graded + points remaining) x pass mark
From remaining work
Points still needed = points needed overall - points earned; as a percentage, divided by points remaining
Because you are ahead of the pass mark. Every point banked above the requirement reduces what the remaining work has to deliver, which is why early effort buys slack later.
It means the points left are arithmetically insufficient. That is the moment to check whether a resit, a late submission with penalty or a withdrawal deadline is available, rather than to keep working on a lost total.