I like the general idea that Doghouse Diaries proposes. But that’s more math than I want to do first thing in the morning.
Maybe someone could write a computer program that would run this calculation, then switch the alarm clock off if the answer is below a certain result.