How long can you keep your personal data under GDPR?

As per the General Data Protection Regulation (GDPR), any personal data must not be kept any longer than it is necessary for the purpose for which the personal data is processed. This further means there is a time limit on how long customers` data can be kept intact. Though there is no specified time limit.