When to test??

Susi
My cycle is due in 5 days and I'm 8dpo. Had moderate cramping on 6dpo. When would I be able to take a test and get an accurate result??