Early Period Glitch

My period shows up religiously on day 27 yet the app has it coming on day 25. Why is doing that. It's also been telling me test starting on day 22. What's the deal?