At home pregnancy test

random
So the frist pregnancy test I have ever taken came out invalid because I think I peed to much so my question is how do you know what the right amount of pee is