Have you lived in Sweden for the period that applies to you?
The usual period is eight years living in Sweden. It is seven years for recognised refugees, for applicants under 21, and for the spouse or partner of a Swedish citizen when you have been together five years and your partner has been Swedish for five. It is five years if you are stateless, two years if you were once a Swedish citizen or are a Nordic citizen, and ten years if you cannot prove your identity with a passport or national ID card. Time counts from when you arrived on a permit that let you settle, or from when you applied for one. Time on a visitor, study or au pair permit does not count. If you were abroad for more than six weeks in total in a year, all of that time abroad is taken off.