When to test - accuracy

Spec
This is probably a silly question, but I'm confused! Help would be appreciated!
The HPT box advertises how accurate it is for 4 days before your period is due. But people can have different length cycles from ovulation to AF
So is it best to go by a certain dpo, or by days before period is due?
Thanks in advance!