Notification when sleep debt goes over a certain threshold

It would be very helpful if there was a way to configure a notification whenever the sleep debt goes over a certain threshold over a period of time. Even better if both the threshold and the time period could be configured.

Sometimes I notice my sleep debt grew too much only after a couple of weeks, if the app would notify me I could take some countermeasures and manage it better, before it went through the roof.