rework credit/debit to be based on the start of a night sleep instead of midnight
The credit/debt calculation sucks right now. It confusingly recalibrates when crossing midnight.
It would be much better if the computational period was relative to the current time, but that is not a sensible base for the calculation because that produces a sliding window that will remain at the same credit/debt value when both ends are in wake periods.
To produce a more useful credit/debit score, it seems logical to take the beginning of a night sleep as the base. In this way, credit/debit can be computed for # nights and because isn't based on an arbitrary period of a day, it won't recalibrate at some arbitrary time.