Dear
@Kiko,
thank you for sharing your question with us in the platform.
Your question has been addressed and answered before, please follow the link:
https://***.wefugees.de/801654/married-wife-until-apply-permanent-residence-permit-germany
In General it takes 3/5-8 years depending on the speed that you can comply with the requirements and what your educational background is etc.
If you still have more specific question please feel free to reach out to the community.
Best regards,
Nilab