How long does a trade secret last?

A trade secret can potentially last indefinitely provided its secrecy is maintained.