According to the IRCC article about the online citizenship test, if you are invited to take an online test, you have 21 days from the date of the invitation to take the test. If you need an extension, email the office that sent you the test invitation with your explanation. IRCC officers give extensions on a case-by-case basis.
We hope this information is helpful. Please feel free to follow up with us if you have any further questions.