How long does an SSD last without being used?

Hello everyone. How long does an external hard drive last without being used? SSDs need power to store data, while HDDs use magnets to store data. (As far as I know) But if I buy an external SSD like this -> https://www.mediamarkt.ch/de/product/_sandisk-extreme-portable-v2-2018090.html How long will it back up the data before it deletes everything? Or…