Spotting

What causes a few spots of blood 1 day before period is due?