Thanks for query,
Are you sexually active? If yes first take home pregnancy
test.if negative then it is due to hormonal
Due to hormonal imbalance you got spotting like this at the end of cycle.
Hormonal imbalance occurs due to stress,Anxiety
,shift duty or due to ovarian lesion.
Wait for your period.