35 days since

My last period. it’s now cycle day 40 still no period but slight cramping. When can I take a test during the day?