I believe a magnetic hard drive has nearly infinite data retention when unpowered, assuming you keep it safe from damage and larger magnets. A SSD has a limited time to remain unplugged, in the factor of years, but not permanent. Why are you wondering??