I wrote the following sentence:
I was scheduled to attend a test but, unfortunately, due to some restrictions on visa, I informed the company that I couldn't attend.
I do not know if the above sentence means that I informed the company before or after the test time?
How to write this sentence to show that I informed the company before the test time not after the test test ? Can I write I would not attend to indicate that?