How to know when dpo

How do you guys know how many days you are past ovulation. Do you go by the first green day or the last. I can figure out when to take a test. Need help with this.