First off, welcome! Secondly, you will learn this over time but only yeast can tell you when a batch is done. I would recommend leaving the beer in the primary for at least two weeks. At the end of the two weeks, grab a sample measure it with a hydrometer and record the reading.
Two or...