["I had a tough calculus final coming up so I studied really hard until I knew for a fact that I'd pass."]
You should be confident.
I had a calculus final that I really needed to ace. Because of this I went and studied so hard that I would know that I'd ace it.