Discharge/spotting

I have a brown discharge the past 3 days that I usually get when my period is ending but this time it started before I got my period but nothing has been happening no actual blood but today I’ve started cramping. Can anyone tell me what this means? Or what the official start day of my period is ?