Both, but definitely not for eating. After any more than a week, eggs won't develop well. I think 10 days is the max for incubating old eggs.
Grocery store eggs may be weeks old, but they still won't float.
Quote:
I ALWAYS do the float test on mine because different people collect the eggs and some have been known to gather the eggs from under a broody. EW! So now I test them.