Some apps have a degree of machine learning that can predict next periods very well. My ex sometimes had delayed periods due to a health condition. Clue was still able to predict her dates pretty accurately. Idk if there are any open source alternatives that’ll work as well.