Early period

Jen
Hope someone can help, am super confused. December, my period was due on the 28th, but came on the 21st. Cycle is usually 31 days. When will my next period be due? 31 days from when I should have come on, or from when I actually came on? Hope that makes sense!