Another day of building an app via copy and paste. It’s a quick way to get exposed to new things and cover ground but not quite as good for learning.
That said, the BetterRest app has a fairly straightforward form frontend that plugs into a machine learning algorithm to return a suggested time that the user should go to sleep based on their input. It’s a black box, but it returns a value quickly.