30 round magazine spring length

What is the length of a good magazine spring for a USGI 30 round AR magazine?
At which point does it need to be replaced?

Thanks.