It is done when the gravity doesn't change for several days.
Assume 75% attenuation and with a 1.080 OG that would be 1.020. Do NOT take this as golden, there are many, many factors that affect attenuation that could throw this number off. Always use the first criteria