How long should your tempo runs be?

Tempo runs are beneficial for every distance from 5K to the marathon