Question about breastfeeding?

How long is too long in your opinion for a 5 month old who’s EBF to go between feeds? Lately my child refuses to latch and has gone 10 hours without eating. I’m calling the ped in the morning but they’re closed