I’m on Cycle Day 38

Never had a cycle longer than 31 days ... when do I got to a doctor about this ?