10dpo! Testing?? Help!

Yesterday morning around 4:00am I woke up to urinate. When I wiped I noticed some light pink spotting. Through the day when I wiped it changed to brown. Today at 10dpo it's still there when I wipe. My AF is due in 4 days. Is this IB? If so, when should I take a pregnancy test?