You have covid as long as you have its specific symptoms as cough, fever, etc.
If you are free of symptoms for at least five days , and you are fever free for at least three days without taking any antipyretic medications, this indicates your body got over covid and you are now free.