Hi Mostafa El-Araby Khalil Shalaby,
Thanks for your post in Microsoft Community.
I understand your question is how long is the Windows activation key valid.
If you purchased the official genuine retail version, the key is permanently valid.
If you are using the enterprise version, then this should contact the company's IT staff, with a high probability of 180 days.
If you are using KMS volume activation, the validity period is 180 days.
If the brand machine you purchased has been activated at the factory, it is highly likely that it will be permanently activated. For details, you can contact the brand owner.
If you purchased the key from a third party, you can ask the seller.
Here are a few related links:
How To Tell - Packaged Software (microsoft.com)
How To Tell - Hardware PC Purchase (microsoft.com)
Hope it helps you.
Kirk | Microsoft Community Support Specialist
* Beware of scammers posting fake support numbers here.
* Kindly Mark and Vote this answer if it helps as it will be beneficial to more community members reading here.