Time you’ve lived in Canada (physical presence)
You (and some minors, if applicable) must have been physically in Canada for at least 1,095 days (3 years) during the 5 years before the date you sign your application.
We encourage you to apply with more than 1,095 days of living in Canada in case there’s a problem with the calculation.
In your calculation, you may be able to include some of the time you spent
in Canada as a temporary resident or protected person
Each day spent in Canada as a temporary resident or protected person within the last 5 years counts as one half day when you calculate your physical presence. You can use a maximum of 365 days as a temporary resident or protected person toward your time spent in Canada.
A temporary resident is someone who is authorized to enter or stay in Canada as a:
visitor
student
worker or
temporary resident permit holder
https://www.canada.ca/en/immigration-refugees-citizenship/services/canadian-citizenship/become-canadian-citizen/eligibility.html