Period coming

Having brown discharge now is that old blood? About how long does the brown discharge last until the period comes?