What counts as the end of your period?

Different people track periods differently. Some also track spotting and some don't. I've heard that if you also track spotting in you calendar your fertility prediction accuracy (like on what days you are most likely to conceive during unprotected sex) is more accurate.