Hi thanks for your question.
You had protected sex your period occured after sex and pregnancy
test is negative.So there is nothing to worry.
your periods occured few days before the due date and altered in its patteren,this happens sometimes and commenest cause is tension.Relax hopefully your next due periods will occur on due date.
Hope this answers your question.